mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14: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
|
||||
template<typename K>
|
||||
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
|
||||
//! key_compare::is_transparent exists.
|
||||
@@ -1041,7 +1041,7 @@ class flat_set
|
||||
//! <b>Complexity</b>: Logarithmic
|
||||
template<typename K>
|
||||
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)
|
||||
|
||||
|
Reference in New Issue
Block a user