diff --git a/include/boost/container/flat_map.hpp b/include/boost/container/flat_map.hpp
index 366f073..3a21ea9 100644
--- a/include/boost/container/flat_map.hpp
+++ b/include/boost/container/flat_map.hpp
@@ -1465,7 +1465,7 @@ class flat_map
//! Complexity: Logarithmic.
template
BOOST_CONTAINER_FORCEINLINE std::pair equal_range(const K& x)
- { return dtl::force_copy >(m_flat_tree.lower_bound_range(x)); }
+ { return dtl::force_copy >(m_flat_tree.equal_range(x)); }
//! Requires: This overload is available only if
//! key_compare::is_transparent exists.
@@ -1475,7 +1475,7 @@ class flat_map
//! Complexity: Logarithmic.
template
BOOST_CONTAINER_FORCEINLINE std::pair equal_range(const K& x) const
- { return dtl::force_copy >(m_flat_tree.lower_bound_range(x)); }
+ { return dtl::force_copy >(m_flat_tree.equal_range(x)); }
//! Effects: Extracts the internal sequence container.
//!
diff --git a/include/boost/container/flat_set.hpp b/include/boost/container/flat_set.hpp
index 5dae0f9..2b69e1a 100644
--- a/include/boost/container/flat_set.hpp
+++ b/include/boost/container/flat_set.hpp
@@ -1031,7 +1031,7 @@ class flat_set
//! Complexity: Logarithmic
template
std::pair equal_range(const K& x)
- { return this->tree_t::lower_bound_range(x); }
+ { return this->tree_t::equal_range(x); }
//! Requires: This overload is available only if
//! key_compare::is_transparent exists.
@@ -1041,7 +1041,7 @@ class flat_set
//! Complexity: Logarithmic
template
std::pair 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)
diff --git a/test/flat_map_test.cpp b/test/flat_map_test.cpp
index 9595775..d01598b 100644
--- a/test/flat_map_test.cpp
+++ b/test/flat_map_test.cpp
@@ -25,6 +25,7 @@
#include "../../intrusive/test/iterator_test.hpp"
#include