30 lines
1.2 KiB
C++
Executable file
30 lines
1.2 KiB
C++
Executable file
#pragma once
|
|
#include <boost/container/flat_map.hpp>
|
|
#include <boost/container/flat_set.hpp>
|
|
#include <boost/interprocess/containers/vector.hpp>
|
|
#include <fc/config.hpp>
|
|
|
|
namespace fc {
|
|
|
|
using boost::container::flat_map;
|
|
using boost::container::flat_set;
|
|
namespace bip = boost::interprocess;
|
|
|
|
namespace raw {
|
|
template<typename Stream, typename T>
|
|
void pack( Stream& s, const flat_set<T>& value, uint32_t _max_depth=FC_PACK_MAX_DEPTH );
|
|
template<typename Stream, typename T>
|
|
void unpack( Stream& s, flat_set<T>& value, uint32_t _max_depth=FC_PACK_MAX_DEPTH );
|
|
template<typename Stream, typename K, typename... V>
|
|
void pack( Stream& s, const flat_map<K,V...>& value, uint32_t _max_depth=FC_PACK_MAX_DEPTH );
|
|
template<typename Stream, typename K, typename V, typename... A>
|
|
void unpack(Stream& s, flat_map<K, V, A...>& value, uint32_t _max_depth=FC_PACK_MAX_DEPTH );
|
|
|
|
|
|
template<typename Stream, typename T, typename A>
|
|
void pack( Stream& s, const bip::vector<T,A>& value, uint32_t _max_depth=FC_PACK_MAX_DEPTH );
|
|
template<typename Stream, typename T, typename A>
|
|
void unpack( Stream& s, bip::vector<T,A>& value, uint32_t _max_depth=FC_PACK_MAX_DEPTH );
|
|
} // namespace raw
|
|
|
|
} // fc
|