7 #ifndef __FWCAMP_CAMP_MAPMAPPER_HPP__ 8 #define __FWCAMP_CAMP_MAPMAPPER_HPP__ 10 #include <boost/utility/enable_if.hpp> 11 #include "fwCamp/camp/traits.hpp" 16 template <
typename T,
typename C =
void>
21 template <
typename MAP>
22 struct MapMapper< MAP, typename
boost::enable_if_c<camp::isMapping<MAP>::value>::type >
25 typedef typename MapType::value_type ValueType;
26 typedef typename MapType::key_type KeyType;
27 typedef typename MapType::mapped_type MappedType;
30 static std::size_t size(
const MapType& map)
35 static const ValueType&
get(
const MapType& map, std::size_t index)
37 typename MapType::const_iterator it = map.begin();
38 std::advance(it, index);
42 static void set(MapType& map,
const KeyType & key,
const MappedType& value)