std::set::extract
cppreference.com
node_type extract( const_iterator position ); |
(1) | ( C++17) |
node_type extract( const key_type& x ); |
(2) | ( C++17) |
, , ( , erase())
. , , : , .
| position | ||
| x |
1)
2) log(a.size())
extract - set
set<move_only_type> s;
s.emplace(...);
move_only_type mot = move(s.extract(s.begin()).value());
| : |
.
(C++17) |
(public -) |
| ( C++17) (public -) | |
| (public -) |