Skip to content

Commit c7a3d86

Browse files
committed
Fix incorrect return value description for insert_or_assign with hint.
1 parent d9404f6 commit c7a3d86

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

include/boost/container/flat_map.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,7 @@ class flat_map
848848
//! to the element obtained while it is held in the node handle are invalidated, and pointers and
849849
//! references obtained to that element before it was extracted become valid.
850850
//!
851-
//! Returns: The bool component is true if the insertion took place and false if the assignment
852-
//! took place. The iterator component is pointing at the element that was inserted or updated.
851+
//! <b>Returns</b>: The returned iterator points to the map element whose key is equivalent to k.
853852
//!
854853
//! Complexity: Logarithmic in the size of the container in general, but amortized constant if
855854
//! the new element is inserted just before hint.
@@ -872,8 +871,7 @@ class flat_map
872871
//! to the element obtained while it is held in the node handle are invalidated, and pointers and
873872
//! references obtained to that element before it was extracted become valid.
874873
//!
875-
//! Returns: The bool component is true if the insertion took place and false if the assignment
876-
//! took place. The iterator component is pointing at the element that was inserted or updated.
874+
//! <b>Returns</b>: The returned iterator points to the map element whose key is equivalent to k.
877875
//!
878876
//! Complexity: Logarithmic in the size of the container in general, but amortized constant if
879877
//! the new element is inserted just before hint.

include/boost/container/map.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ class map
620620
//! to the element obtained while it is held in the node handle are invalidated, and pointers and
621621
//! references obtained to that element before it was extracted become valid.
622622
//!
623-
//! <b>Returns</b>: The bool component is true if the insertion took place and false if the assignment
624-
//! took place. The iterator component is pointing at the element that was inserted or updated.
623+
//! <b>Returns</b>: The returned iterator points to the map element whose key is equivalent to k.
625624
//!
626625
//! <b>Complexity</b>: Logarithmic in the size of the container in general, but amortized constant if
627626
//! the new element is inserted just before hint.
@@ -638,8 +637,7 @@ class map
638637
//! to the element obtained while it is held in the node handle are invalidated, and pointers and
639638
//! references obtained to that element before it was extracted become valid.
640639
//!
641-
//! <b>Returns</b>: The bool component is true if the insertion took place and false if the assignment
642-
//! took place. The iterator component is pointing at the element that was inserted or updated.
640+
//! <b>Returns</b>: The returned iterator points to the map element whose key is equivalent to k.
643641
//!
644642
//! <b>Complexity</b>: Logarithmic in the size of the container in general, but amortized constant if
645643
//! the new element is inserted just before hint.

0 commit comments

Comments
 (0)