mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
14 lines
280 B
C++
14 lines
280 B
C++
#pragma once
|
|
#include <array>
|
|
#include <algorithm>
|
|
#include "transactions.hpp"
|
|
|
|
struct Log
|
|
{
|
|
std::array<Transaction, 100> data;
|
|
void AddTrans(Transaction &&v)
|
|
{
|
|
std::rotate(data.begin(), data.begin() + 1, data.end());
|
|
data[99] = std::move(v);
|
|
}
|
|
};
|