7 #ifndef __FWCAMP_MAPPER_ARRAYMAPPER_HPP__ 8 #define __FWCAMP_MAPPER_ARRAYMAPPER_HPP__ 12 #include <camp/valuemapper.hpp> 13 #include <camp/type.hpp> 14 #include <camp/camptype.hpp> 22 struct ArrayMapper<
std::set<T> >
24 typedef T ElementType;
31 static std::size_t size(
const std::set<T>& arr)
36 static const T&
get(
const std::set<T>& arr, std::size_t index)
38 typename std::set<T>::const_iterator cIt = arr.begin();
39 for(
int i = 0; i < index; i++)
46 static void set(std::set<T>& arr, std::size_t index,
const T& value)
50 static void insert(std::set<T>& arr, std::size_t before,
const T& value)
55 static void remove(std::set<T>& arr, std::size_t index)
57 typename std::set<T>::const_iterator cIt = arr.begin();
58 for(
int i = 0; i < index; ++i)