31 #ifndef LEDGER_CORE_VECTORUTILS_H 32 #define LEDGER_CORE_VECTORUTILS_H 41 static void padOnLeft(std::vector<T>& vector, T elem, std::size_t length) {
42 if (vector.size() < length) {
43 auto maxPadAddress = length - vector.size();
44 std::vector<T> result(length);
46 for (
auto i = 0; i < length; i++) {
47 if (i < maxPadAddress) {
50 result[i] = vector[j];
62 #endif //LEDGER_CORE_VECTORUTILS_H Definition: VectorUtils.h:38
Definition: Account.cpp:8