.TH "cereal::MapItem< Key, Value >" 3 "Sat Oct 10 2026 08:08:15" "cereal" \" -*- nroff -*- .ad l .nh .SH NAME cereal::MapItem< Key, Value > \- A wrapper around a key and value for serializing data into maps\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Public Types" .in +1c .ti -1c .RI "using \fBKeyType\fP" .br .ti -1c .RI "using \fBValueType\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBMapItem\fP (Key &&key_, Value &&value_)" .br .RI "Construct a \fBMapItem\fP from a key and a value\&. " .ti -1c .RI "\fBMapItem\fP & \fBoperator=\fP (\fBMapItem\fP const &)=delete" .br .ti -1c .RI "template void \fBCEREAL_SERIALIZE_FUNCTION_NAME\fP (Archive &archive)" .br .RI "Serialize the \fBMapItem\fP with the NVPs "key" and "value"\&. " .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "KeyType \fBkey\fP" .br .ti -1c .RI "ValueType \fBvalue\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br 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: .PP .PP .nf MyFirstKey MyFirstValue MySecondKey MySecondValue .fi .PP .PP \fBSee also\fP .RS 4 \fBmake_map_item\fP .RE .PP .SH "Member Typedef Documentation" .PP .SS "template using \fBcereal::MapItem\fP< Key, Value >::KeyType" \fBInitial value:\fP .nf typename std::conditional< std::is_lvalue_reference::value, Key, typename std::decay::type>::type .PP .fi .SS "template using \fBcereal::MapItem\fP< Key, Value >::ValueType" \fBInitial value:\fP .nf typename std::conditional< std::is_lvalue_reference::value, Value, typename std::decay::type>::type .PP .fi .SH "Author" .PP Generated automatically by Doxygen for cereal from the source code\&.