View on GitHub
jbson
C++11/1y BSON library
Public Types | List of all members
jbson::detail::TypeMap< Container, set > Class Template Reference

Compile-time map. Maps element_types to C++ type for serialisation/deserialisation. More...

#include <traits.hpp>

Public Types

typedef boost::mpl::map<...> map_type
 boost::mpl map.
 

Detailed Description

template<typename Container, bool set = false>
class jbson::detail::TypeMap< Container, set >

Compile-time map. Maps element_types to C++ type for serialisation/deserialisation.

Template Parameters
ContainerSome container or range type used for basic_element storage.
setbool condition to determine whether to use the map for serialisataion or deserialisation.

Internal mapped types depend on the container given. When used for finding serialisation types (set == true) it will use the container as-is. Otherwise it uses a boost::iterator_range.

When Container's iterators are pointers (according to is_iterator_pointer) all string types will be boost::string_ref. Otherwise strings are all std::string.

See also
is_iterator_pointer ElementTypeMap ElementTypeMapSet

Definition at line 92 of file traits.hpp.


The documentation for this class was generated from the following file: