|
|
@ -366,8 +366,8 @@ class btree_map |
|
|
|
// Determines whether an element comparing equal to the given `key` exists
|
|
|
|
// Determines whether an element comparing equal to the given `key` exists
|
|
|
|
// within the `btree_map`, returning `true` if so or `false` otherwise.
|
|
|
|
// within the `btree_map`, returning `true` if so or `false` otherwise.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Supports heterogeneous lookup, provided that the map is provided a
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
// compatible heterogeneous comparator.
|
|
|
|
// heterogeneous comparator.
|
|
|
|
using Base::contains; |
|
|
|
using Base::contains; |
|
|
|
|
|
|
|
|
|
|
|
// btree_map::count()
|
|
|
|
// btree_map::count()
|
|
|
@ -378,8 +378,8 @@ class btree_map |
|
|
|
// the `btree_map`. Note that this function will return either `1` or `0`
|
|
|
|
// the `btree_map`. Note that this function will return either `1` or `0`
|
|
|
|
// since duplicate elements are not allowed within a `btree_map`.
|
|
|
|
// since duplicate elements are not allowed within a `btree_map`.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Supports heterogeneous lookup, provided that the map is provided a
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
// compatible heterogeneous comparator.
|
|
|
|
// heterogeneous comparator.
|
|
|
|
using Base::count; |
|
|
|
using Base::count; |
|
|
|
|
|
|
|
|
|
|
|
// btree_map::equal_range()
|
|
|
|
// btree_map::equal_range()
|
|
|
@ -395,10 +395,34 @@ class btree_map |
|
|
|
//
|
|
|
|
//
|
|
|
|
// Finds an element with the passed `key` within the `btree_map`.
|
|
|
|
// Finds an element with the passed `key` within the `btree_map`.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Supports heterogeneous lookup, provided that the map is provided a
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
// compatible heterogeneous comparator.
|
|
|
|
// heterogeneous comparator.
|
|
|
|
using Base::find; |
|
|
|
using Base::find; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// btree_map::lower_bound()
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// template <typename K> iterator lower_bound(const K& key):
|
|
|
|
|
|
|
|
// template <typename K> const_iterator lower_bound(const K& key) const:
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Finds the first element with a key that is not less than `key` within the
|
|
|
|
|
|
|
|
// `btree_map`.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
|
|
|
|
// heterogeneous comparator.
|
|
|
|
|
|
|
|
using Base::lower_bound; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// btree_map::upper_bound()
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// template <typename K> iterator upper_bound(const K& key):
|
|
|
|
|
|
|
|
// template <typename K> const_iterator upper_bound(const K& key) const:
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Finds the first element with a key that is greater than `key` within the
|
|
|
|
|
|
|
|
// `btree_map`.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
|
|
|
|
// heterogeneous comparator.
|
|
|
|
|
|
|
|
using Base::upper_bound; |
|
|
|
|
|
|
|
|
|
|
|
// btree_map::operator[]()
|
|
|
|
// btree_map::operator[]()
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Returns a reference to the value mapped to the passed key within the
|
|
|
|
// Returns a reference to the value mapped to the passed key within the
|
|
|
@ -691,8 +715,8 @@ class btree_multimap |
|
|
|
// Determines whether an element comparing equal to the given `key` exists
|
|
|
|
// Determines whether an element comparing equal to the given `key` exists
|
|
|
|
// within the `btree_multimap`, returning `true` if so or `false` otherwise.
|
|
|
|
// within the `btree_multimap`, returning `true` if so or `false` otherwise.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Supports heterogeneous lookup, provided that the map is provided a
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
// compatible heterogeneous comparator.
|
|
|
|
// heterogeneous comparator.
|
|
|
|
using Base::contains; |
|
|
|
using Base::contains; |
|
|
|
|
|
|
|
|
|
|
|
// btree_multimap::count()
|
|
|
|
// btree_multimap::count()
|
|
|
@ -702,8 +726,8 @@ class btree_multimap |
|
|
|
// Returns the number of elements comparing equal to the given `key` within
|
|
|
|
// Returns the number of elements comparing equal to the given `key` within
|
|
|
|
// the `btree_multimap`.
|
|
|
|
// the `btree_multimap`.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Supports heterogeneous lookup, provided that the map is provided a
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
// compatible heterogeneous comparator.
|
|
|
|
// heterogeneous comparator.
|
|
|
|
using Base::count; |
|
|
|
using Base::count; |
|
|
|
|
|
|
|
|
|
|
|
// btree_multimap::equal_range()
|
|
|
|
// btree_multimap::equal_range()
|
|
|
@ -720,10 +744,34 @@ class btree_multimap |
|
|
|
//
|
|
|
|
//
|
|
|
|
// Finds an element with the passed `key` within the `btree_multimap`.
|
|
|
|
// Finds an element with the passed `key` within the `btree_multimap`.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Supports heterogeneous lookup, provided that the map is provided a
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
// compatible heterogeneous comparator.
|
|
|
|
// heterogeneous comparator.
|
|
|
|
using Base::find; |
|
|
|
using Base::find; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// btree_multimap::lower_bound()
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// template <typename K> iterator lower_bound(const K& key):
|
|
|
|
|
|
|
|
// template <typename K> const_iterator lower_bound(const K& key) const:
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Finds the first element with a key that is not less than `key` within the
|
|
|
|
|
|
|
|
// `btree_multimap`.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
|
|
|
|
// heterogeneous comparator.
|
|
|
|
|
|
|
|
using Base::lower_bound; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// btree_multimap::upper_bound()
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// template <typename K> iterator upper_bound(const K& key):
|
|
|
|
|
|
|
|
// template <typename K> const_iterator upper_bound(const K& key) const:
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Finds the first element with a key that is greater than `key` within the
|
|
|
|
|
|
|
|
// `btree_multimap`.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Supports heterogeneous lookup, provided that the map has a compatible
|
|
|
|
|
|
|
|
// heterogeneous comparator.
|
|
|
|
|
|
|
|
using Base::upper_bound; |
|
|
|
|
|
|
|
|
|
|
|
// btree_multimap::get_allocator()
|
|
|
|
// btree_multimap::get_allocator()
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Returns the allocator function associated with this `btree_multimap`.
|
|
|
|
// Returns the allocator function associated with this `btree_multimap`.
|
|
|
|