Skip to content

Commit 862ae36

Browse files
committed
Fixes #310 ("flat_map: Mention correct type in documentation of emplace and emplace_hint"
1 parent 9665353 commit 862ae36

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/container.qbk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,7 @@ use [*Boost.Container]? There are several reasons for that:
14261426
* Fixed bugs/issues:
14271427
* [@https://github.com/boostorg/container/pull/307 GitHub #307: ['"Fix all instances of MSVC warning C4146 (unsigned negation)"]].
14281428
* [@https://github.com/boostorg/container/issues/309 GitHub #309: ['"Performance regression of boost::container::static_vector introduced in boost v1.86"]].
1429+
* [@https://github.com/boostorg/container/issues/310 GitHub #310: ['"flat_map: Mention correct type in documentation of emplace and emplace_hint"]].
14291430

14301431
[endsect]
14311432

include/boost/container/flat_map.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ class flat_map
943943

944944
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
945945

946-
//! <b>Effects</b>: Inserts an object x of type T constructed with
946+
//! <b>Effects</b>: Inserts an object x of type value_type constructed with
947947
//! std::forward<Args>(args)... if and only if there is no element in the container
948948
//! with key equivalent to the key of x.
949949
//!
@@ -959,7 +959,7 @@ class flat_map
959959
inline std::pair<iterator,bool> emplace(BOOST_FWD_REF(Args)... args)
960960
{ return dtl::force_copy< std::pair<iterator, bool> >(m_flat_tree.emplace_unique(boost::forward<Args>(args)...)); }
961961

962-
//! <b>Effects</b>: Inserts an object of type T constructed with
962+
//! <b>Effects</b>: Inserts an object of type value_type constructed with
963963
//! std::forward<Args>(args)... in the container if and only if there is
964964
//! no element in the container with key equivalent to the key of x.
965965
//! p is a hint pointing to where the insert should start to search.
@@ -2478,7 +2478,7 @@ class flat_multimap
24782478

24792479
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
24802480

2481-
//! <b>Effects</b>: Inserts an object of type T constructed with
2481+
//! <b>Effects</b>: Inserts an object of type value_type constructed with
24822482
//! std::forward<Args>(args)... and returns the iterator pointing to the
24832483
//! newly inserted element.
24842484
//!
@@ -2491,7 +2491,7 @@ class flat_multimap
24912491
iterator emplace(BOOST_FWD_REF(Args)... args)
24922492
{ return dtl::force_copy<iterator>(m_flat_tree.emplace_equal(boost::forward<Args>(args)...)); }
24932493

2494-
//! <b>Effects</b>: Inserts an object of type T constructed with
2494+
//! <b>Effects</b>: Inserts an object of type value_type constructed with
24952495
//! std::forward<Args>(args)... in the container.
24962496
//! p is a hint pointing to where the insert should start to search.
24972497
//!

0 commit comments

Comments
 (0)