OS Manuals

cereal_MapItem(3)

cereal::MapItem< Key, Value > - A wrapper around a key and value for serializing data into maps.

cereal::MapItem< Key, Value >(3) Library Functions Manual cereal::MapItem< Key, Value >(3)

cereal::MapItem< Key, Value > - A wrapper around a key and value for serializing data into maps.

#include </home/build/include/cereal/details/helpers.hpp>


using KeyType
using ValueType


MapItem (Key &&key_, Value &&value_)
Construct a MapItem from a key and a value. MapItem & operator= (MapItem const &)=delete
template<class Archive> void CEREAL_SERIALIZE_FUNCTION_NAME (Archive &archive)
Serialize the MapItem with the NVPs key"andvalue.


KeyType key
ValueType value

struct cereal::MapItem< Key, Value >"A wrapper around a key and value for serializing data into maps.

This class just provides a grouping of keys and values into a struct for human readable archives. For example, XML archives will use this wrapper to write maps like so:

<mymap>

<item0>
<key>MyFirstKey</key>
<value>MyFirstValue</value>
</item0>
<item1>
<key>MySecondKey</key>
<value>MySecondValue</value>
</item1> </mymap>

See also

make_map_item

template<class Key, class Value> using cereal::MapItem< Key, Value >::KeyType

Initial value:

typename std::conditional<

std::is_lvalue_reference<Key>::value,
Key,
typename std::decay<Key>::type>::type

template<class Key, class Value> using cereal::MapItem< Key, Value >::ValueType

Initial value:

typename std::conditional<

std::is_lvalue_reference<Value>::value,
Value,
typename std::decay<Value>::type>::type

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

cereal 1.3.2-r8 · enterprise-packages · ingested 2026-10-27