Lines Matching full:allocator
21 class Allocator = allocator<Key>>
30 typedef Allocator allocator_type;
60 …set(from_range_t, R&& rg, const Compare& comp = Compare(), const Allocator& = Allocator()); // C++…
76 set(from_range_t, R&& rg, const Allocator& a))
138 void merge(set<Key, C2, Allocator>& source); // C++17
140 void merge(set<Key, C2, Allocator>&& source); // C++17
142 void merge(multiset<Key, C2, Allocator>& source); // C++17
144 void merge(multiset<Key, C2, Allocator>&& source); // C++17
195 class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>>
197 Compare = Compare(), Allocator = Allocator())
198 -> set<typename iterator_traits<InputIterator>::value_type, Compare, Allocator>; // C++17
201 class Allocator = allocator<ranges::range_value_t<R>>>
202 set(from_range_t, R&&, Compare = Compare(), Allocator = Allocator())
203 -> set<ranges::range_value_t<R>, Compare, Allocator>; // C++23
205 template<class Key, class Compare = less<Key>, class Allocator = allocator<Key>>
206 set(initializer_list<Key>, Compare = Compare(), Allocator = Allocator())
207 -> set<Key, Compare, Allocator>; // C++17
209 template<class InputIterator, class Allocator>
210 set(InputIterator, InputIterator, Allocator)
212 less<typename iterator_traits<InputIterator>::value_type>, Allocator>; // C++17
214 template<ranges::input_range R, class Allocator>
215 set(from_range_t, R&&, Allocator)
216 -> set<ranges::range_value_t<R>, less<ranges::range_value_t<R>>, Allocator>; // C++23
218 template<class Key, class Allocator>
219 set(initializer_list<Key>, Allocator) -> set<Key, less<Key>, Allocator>; // C++17
221 template <class Key, class Compare, class Allocator>
223 operator==(const set<Key, Compare, Allocator>& x,
224 const set<Key, Compare, Allocator>& y);
226 template <class Key, class Compare, class Allocator>
228 operator< (const set<Key, Compare, Allocator>& x,
229 … const set<Key, Compare, Allocator>& y); // removed in C++20
231 template <class Key, class Compare, class Allocator>
233 operator!=(const set<Key, Compare, Allocator>& x,
234 … const set<Key, Compare, Allocator>& y); // removed in C++20
236 template <class Key, class Compare, class Allocator>
238 operator> (const set<Key, Compare, Allocator>& x,
239 … const set<Key, Compare, Allocator>& y); // removed in C++20
241 template <class Key, class Compare, class Allocator>
243 operator>=(const set<Key, Compare, Allocator>& x,
244 … const set<Key, Compare, Allocator>& y); // removed in C++20
246 template <class Key, class Compare, class Allocator>
248 operator<=(const set<Key, Compare, Allocator>& x,
249 … const set<Key, Compare, Allocator>& y); // removed in C++20
251 template<class Key, class Compare, class Allocator>
252 synth-three-way-result<Key> operator<=>(const set<Key, Compare, Allocator>& x,
253 const set<Key, Compare, Allocator>& y); // since C++20
256 template <class Key, class Compare, class Allocator>
258 swap(set<Key, Compare, Allocator>& x, set<Key, Compare, Allocator>& y)
261 template <class Key, class Compare, class Allocator, class Predicate>
262 typename set<Key, Compare, Allocator>::size_type
263 erase_if(set<Key, Compare, Allocator>& c, Predicate pred); // C++20
266 class Allocator = allocator<Key>>
275 typedef Allocator allocator_type;
305 const Compare& comp = Compare(), const Allocator& = Allocator()); // C++23
321 multiset(from_range_t, R&& rg, const Allocator& a))
383 void merge(multiset<Key, C2, Allocator>& source); // C++17
385 void merge(multiset<Key, C2, Allocator>&& source); // C++17
387 void merge(set<Key, C2, Allocator>& source); // C++17
389 void merge(set<Key, C2, Allocator>&& source); // C++17
441 class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>>
443 Compare = Compare(), Allocator = Allocator())
444 -> multiset<typename iterator_traits<InputIterator>::value_type, Compare, Allocator>; // C++17
447 class Allocator = allocator<ranges::range_value_t<R>>>
448 multiset(from_range_t, R&&, Compare = Compare(), Allocator = Allocator())
449 -> multiset<ranges::range_value_t<R>, Compare, Allocator>;
451 template<class Key, class Compare = less<Key>, class Allocator = allocator<Key>>
452 multiset(initializer_list<Key>, Compare = Compare(), Allocator = Allocator())
453 -> multiset<Key, Compare, Allocator>; // C++17
455 template<class InputIterator, class Allocator>
456 multiset(InputIterator, InputIterator, Allocator)
458 less<typename iterator_traits<InputIterator>::value_type>, Allocator>; // C++17
460 template<ranges::input_range R, class Allocator>
461 multiset(from_range_t, R&&, Allocator)
462 -> multiset<ranges::range_value_t<R>, less<ranges::range_value_t<R>>, Allocator>;
464 template<class Key, class Allocator>
465 multiset(initializer_list<Key>, Allocator) -> multiset<Key, less<Key>, Allocator>; // C++17
467 template <class Key, class Compare, class Allocator>
469 operator==(const multiset<Key, Compare, Allocator>& x,
470 const multiset<Key, Compare, Allocator>& y);
472 template <class Key, class Compare, class Allocator>
474 operator< (const multiset<Key, Compare, Allocator>& x,
475 … const multiset<Key, Compare, Allocator>& y); // removed in C++20
477 template <class Key, class Compare, class Allocator>
479 operator!=(const multiset<Key, Compare, Allocator>& x,
480 … const multiset<Key, Compare, Allocator>& y); // removed in C++20
482 template <class Key, class Compare, class Allocator>
484 operator> (const multiset<Key, Compare, Allocator>& x,
485 … const multiset<Key, Compare, Allocator>& y); // removed in C++20
487 template <class Key, class Compare, class Allocator>
489 operator>=(const multiset<Key, Compare, Allocator>& x,
490 … const multiset<Key, Compare, Allocator>& y); // removed in C++20
492 template <class Key, class Compare, class Allocator>
494 operator<=(const multiset<Key, Compare, Allocator>& x,
495 … const multiset<Key, Compare, Allocator>& y); // removed in C++20
497 template<class Key, class Compare, class Allocator>
498 synth-three-way-result<Key> operator<=>(const multiset<Key, Compare, Allocator>& x,
499 … const multiset<Key, Compare, Allocator>& y); // since C++20
502 template <class Key, class Compare, class Allocator>
504 swap(multiset<Key, Compare, Allocator>& x, multiset<Key, Compare, Allocator>& y)
507 template <class Key, class Compare, class Allocator, class Predicate>
508 typename multiset<Key, Compare, Allocator>::size_type
509 erase_if(multiset<Key, Compare, Allocator>& c, Predicate pred); // C++20
526 #include <__memory/allocator.h>
562 template <class _Key, class _Compare = less<_Key>, class _Allocator = allocator<_Key> >
575 "Allocator::value_type must be same type as value_type");
773 … "node_type with incompatible allocator passed to set::insert()");
778 … "node_type with incompatible allocator passed to set::insert()");
790 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
796 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
802 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
808 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
897 class _Allocator = allocator<__iter_value_type<_InputIterator>>,
907 class _Allocator = allocator<ranges::range_value_t<_Range>>,
916 class _Allocator = allocator<_Key>,
1016 template <class _Key, class _Compare = less<_Key>, class _Allocator = allocator<_Key> >
1029 "Allocator::value_type must be same type as value_type");
1228 … "node_type with incompatible allocator passed to multiset::insert()");
1233 … "node_type with incompatible allocator passed to multiset::insert()");
1245 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
1251 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
1257 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
1263 … __source.get_allocator() == get_allocator(), "merging container with incompatible allocator");
1354 class _Allocator = allocator<__iter_value_type<_InputIterator>>,
1364 class _Allocator = allocator<ranges::range_value_t<_Range>>,
1373 class _Allocator = allocator<_Key>,