Lines Matching refs:flat_map

31 // flat_map is a container with a std::map-like interface that stores its
52 // - If possible, construct a flat_map in one operation by inserting into
53 // a std::vector and moving that vector into the flat_map constructor.
62 // flat_map(InputIterator first, InputIterator last,
65 // flat_map(const flat_map&);
66 // flat_map(flat_map&&);
67 // flat_map(std::vector<value_type>,
70 // flat_map(std::initializer_list<value_type> ilist,
75 // flat_map& operator=(const flat_map&);
76 // flat_map& operator=(flat_map&&);
77 // flat_map& operator=(initializer_list<value_type>);
141 // void swap(flat_map&&);
144 // bool operator==(const flat_map&, const flat_map);
145 // bool operator!=(const flat_map&, const flat_map);
146 // bool operator<(const flat_map&, const flat_map);
147 // bool operator>(const flat_map&, const flat_map);
148 // bool operator>=(const flat_map&, const flat_map);
149 // bool operator<=(const flat_map&, const flat_map);
152 class flat_map : public ::base::internal::flat_tree<
179 flat_map() = default;
180 explicit flat_map(const Compare& comp);
183 flat_map(InputIterator first,
188 flat_map(const flat_map&) = default;
189 flat_map(flat_map&&) noexcept = default;
191 flat_map(std::vector<value_type> items,
195 flat_map(std::initializer_list<value_type> ilist,
199 ~flat_map() = default;
201 flat_map& operator=(const flat_map&) = default;
202 flat_map& operator=(flat_map&&) = default;
204 flat_map& operator=(std::initializer_list<value_type> ilist);
236 void swap(flat_map& other) noexcept;
238 friend void swap(flat_map& lhs, flat_map& rhs) noexcept { lhs.swap(rhs); }
245 flat_map<Key, Mapped, Compare>::flat_map(const Compare& comp) : tree(comp) {}
249 flat_map<Key, Mapped, Compare>::flat_map(InputIterator first,
256 flat_map<Key, Mapped, Compare>::flat_map(std::vector<value_type> items,
262 flat_map<Key, Mapped, Compare>::flat_map(
266 : flat_map(std::begin(ilist), std::end(ilist), dupe_handling, comp) {}
272 auto flat_map<Key, Mapped, Compare>::operator=(
273 std::initializer_list<value_type> ilist) -> flat_map& {
276 // flat_map<...> x;
278 // from first creating a flat_map and then move assigning it. This most
288 auto flat_map<Key, Mapped, Compare>::operator[](const key_type& key)
297 auto flat_map<Key, Mapped, Compare>::operator[](key_type&& key)
307 auto flat_map<Key, Mapped, Compare>::insert_or_assign(K&& key, M&& obj)
318 auto flat_map<Key, Mapped, Compare>::insert_or_assign(const_iterator hint,
330 auto flat_map<Key, Mapped, Compare>::try_emplace(K&& key, Args&&... args)
341 auto flat_map<Key, Mapped, Compare>::try_emplace(const_iterator hint,
356 void flat_map<Key, Mapped, Compare>::swap(flat_map& other) noexcept {