STL map whose keys are Slices. More...
#include <slice.h>
Public Types | |
typedef std::map< Slice, T, Slice::Comparator > | type |
A handy typedef for the slice map with appropriate comparison operator. |
STL map whose keys are Slices.
An example of usage:
typedef SliceMap<int>::type MySliceMap; MySliceMap my_map; my_map.insert(MySliceMap::value_type(a, 1)); my_map.insert(MySliceMap::value_type(b, 2)); my_map.insert(MySliceMap::value_type(c, 3)); for (const MySliceMap::value_type& pair : my_map) { ... }