mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 06:24:26 +02:00
With heterogeneous lookup, equal_range
can result in a range with length greater than 1.
This commit is contained in:
@@ -1031,7 +1031,7 @@ class flat_set
|
|||||||
//! <b>Complexity</b>: Logarithmic
|
//! <b>Complexity</b>: Logarithmic
|
||||||
template<typename K>
|
template<typename K>
|
||||||
std::pair<iterator,iterator> equal_range(const K& x)
|
std::pair<iterator,iterator> equal_range(const K& x)
|
||||||
{ return this->tree_t::lower_bound_range(x); }
|
{ return this->tree_t::equal_range(x); }
|
||||||
|
|
||||||
//! <b>Requires</b>: This overload is available only if
|
//! <b>Requires</b>: This overload is available only if
|
||||||
//! key_compare::is_transparent exists.
|
//! key_compare::is_transparent exists.
|
||||||
@@ -1041,7 +1041,7 @@ class flat_set
|
|||||||
//! <b>Complexity</b>: Logarithmic
|
//! <b>Complexity</b>: Logarithmic
|
||||||
template<typename K>
|
template<typename K>
|
||||||
std::pair<const_iterator,const_iterator> equal_range(const K& x) const
|
std::pair<const_iterator,const_iterator> equal_range(const K& x) const
|
||||||
{ return this->tree_t::lower_bound_range(x); }
|
{ return this->tree_t::equal_range(x); }
|
||||||
|
|
||||||
#if defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
|
#if defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user