Claw  1.7.3
claw::multi_type_map_wrapper< ValueType, Map > Class Template Reference

This class provides types and methods to allow the call of methods for a given type in the inheritance of a multi_type_map. More...

#include <multi_type_map.hpp>

Detailed Description

template<typename ValueType, typename Map>
class claw::multi_type_map_wrapper< ValueType, Map >

This class provides types and methods to allow the call of methods for a given type in the inheritance of a multi_type_map.

Remarks
This class is to be used internally.

Suppose we have defined the following variable

multi_type_map<int, type_list<std::string, type_list<int, no_type> > > my_map;

The call int i = my_map.get<int>( 24 ); doesn't match the type of the end class. So the call is repercuted on the parent class until the types match. Then, we can get the values in m_data.

Template parameters

Author
Julien Jorge

Definition at line 60 of file multi_type_map.hpp.


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