12 template<
template<
typename...>
class Set,
typename Stream,
typename T,
typename...
U>
16 for(
const auto& item :
value ) {
21 template<
template<
typename...>
class Set,
typename Stream,
typename T,
typename...
U>
33 template<
template<
typename...>
class Set,
typename Stream,
typename T,
typename...
U>
46 template<
template<
typename...>
class Map,
typename Stream,
typename K,
typename V,
typename...
U>
50 for(
const auto& item :
value ) {
55 template<
template<
typename...>
class Map,
typename Stream,
typename K,
typename V,
typename...
U>
67 template<
template<
typename...>
class Map,
typename Stream,
typename K,
typename V,
typename...
U>
86 template<
template<
typename...>
class Set,
typename T,
typename...
U>
90 vars.reserve(
s.size() );
91 for(
const auto& item :
s ) {
92 vars.emplace_back( item );
94 vo = std::move( vars );
97 template<
template<
typename...>
class Set,
typename T,
typename...
U>
102 for(
const auto& var : vars ) {
105 s.insert(
s.end(), std::move(item) );
109 template<
template<
typename...>
class Set,
typename T,
typename...
U>
114 s.reserve( vars.size() );
115 for(
const auto& var : vars ) {
118 s.insert(
s.end(), std::move(item) );
122 template<
template<
typename...>
class Map,
typename K,
typename V,
typename...
U >
126 vars.reserve( m.size() );
127 for(
const auto& item : m ) {
128 vars.emplace_back( item );
130 vo = std::move( vars );
133 template<
template<
typename...>
class Map,
typename K,
typename V,
typename...
U>
138 for(
const auto& var : vars ) {
140 var.as< std::pair<K,V> >( item );
141 m.insert( m.end(), std::move(item) );
145 template<
template<
typename...>
class Map,
typename K,
typename V,
typename...
U>
150 m.reserve( vars.size() );
151 for(
const auto& var : vars ) {
153 var.as< std::pair<K,V> >( item );
154 m.insert( m.end(), std::move(item) );
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Concept for reading and writing characters.
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
void to_variant_from_set(const Set< T, U... > &s, fc::variant &vo)
auto construct_maybe_with_allocator(A &&allocator, Args &&... args) -> std::enable_if_t< supports_allocator< T, A >::value &&supports_allocator< T, A >::leading_allocator, T >
void from_variant_to_flat_set(const fc::variant &v, Set< T, U... > &s)
std::pair< T1, T2 > default_construct_pair_maybe_with_allocator(A &&allocator)
void from_variant_to_map(const variant &v, Map< K, V, U... > &m)
void from_variant_to_flat_map(const variant &v, Map< K, V, U... > &m)
void to_variant_from_map(const Map< K, V, U... > &m, fc::variant &vo)
void from_variant_to_set(const fc::variant &v, Set< T, U... > &s)
void unpack_map(Stream &s, Map< K, V, U... > &value)
void pack_map(Stream &s, const Map< K, V, U... > &value)
void pack_set(Stream &s, const Set< T, U... > &value)
void unpack_set(Stream &s, Set< T, U... > &value)
void unpack_flat_map(Stream &s, Map< K, V, U... > &value)
void unpack_flat_set(Stream &s, Set< T, U... > &value)
void unpack(Stream &s, std::deque< T > &value)
void pack(Stream &s, const std::deque< T > &value)
std::vector< fc::variant > variants
#define T(meth, val, expected)
#define MAX_NUM_ARRAY_ELEMENTS