small_map.h | 20 // small_map is a container with a std::map-like interface. It starts out 42 // base::small_map will pick up the comparator from the underlying map type. In 49 // operator< for your map and supply yor own version of == to the small_map. 52 // base::small_map<std::map<MyKey, MyValue>, 4, std::equal_to<KyKey>> 59 // and value types for the small_map. 61 // allocated with the small_map object rather than separately on 70 // This functor will be called at most once per small_map, when the map 77 // base::small_map<std::map<string, int>> days; 168 class small_map { class in namespace:base 182 small_map() : size_(0), functor_(MapInit()) { function in class:base::small_map 184 explicit small_map(const MapInit& functor) : size_(0), functor_(functor) {} function in class:base::small_map 187 small_map(const small_map& src) { function in class:base::small_map [all...] |