boost::gil::histogram::insert_or_assign
Attempts to insert a std::pair into the %unordered_map.
Synopses
Declared in <boost/gil/histogram.hpp>
Attempts to insert a std::pair into the %unordered_map.
template<typename _Obj>
pair<iterator, bool>
insert_or_assign(
key_type const& __k,
_Obj&& __obj);
template<typename _Obj>
pair<iterator, bool>
insert_or_assign(
key_type&& __k,
_Obj&& __obj);
Attempts to insert a std::pair into the %unordered_map.
template<typename _Obj>
iterator
insert_or_assign(
const_iterator __hint,
key_type const& __k,
_Obj&& __obj);
template<typename _Obj>
iterator
insert_or_assign(
const_iterator __hint,
key_type&& __k,
_Obj&& __obj);
Return Value
-
A pair, of which the first element is an iterator that points to the possibly inserted pair, and the second is a bool that is true if the pair was actually inserted.
-
An iterator that points to the element with key of __x (may or may not be the %pair passed in).
Parameters
Name |
Description |
__k |
Key to use for finding a possibly existing pair in the map. |
__obj |
Argument used to generate the .second for a pair instance. |
__hint |
An iterator that serves as a hint as to where the pair should be inserted. |
Created with MrDocs