Lines Matching defs:ordered_map
16 struct ordered_map : std::vector<std::pair<const Key, T>, Allocator> struct
18 using key_type = Key;
19 using mapped_type = T;
20 using Container = std::vector<std::pair<const Key, T>, Allocator>;
28 ordered_map(const Allocator& alloc = Allocator()) : Container{alloc} {} in ordered_map() argument
30 ordered_map(It first, It last, const Allocator& alloc = Allocator()) in ordered_map() argument
32 ordered_map(std::initializer_list<T> init, const Allocator& alloc = Allocator() ) in ordered_map() function
35 std::pair<iterator, bool> emplace(const key_type& key, T&& t) in emplace()
48 T& operator[](const Key& key) in operator []()
53 const T& operator[](const Key& key) const in operator []()
58 T& at(const Key& key) in at()
71 const T& at(const Key& key) const in at()
84 size_type erase(const Key& key) in erase()
103 iterator erase(iterator pos) in erase()
117 size_type count(const Key& key) const in count()
129 iterator find(const Key& key) in find()
141 const_iterator find(const Key& key) const in find()
153 std::pair<iterator, bool> insert( value_type&& value ) in insert()
158 std::pair<iterator, bool> insert( const value_type& value ) in insert()