[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/container/set/extract [Back]  [Original]

std::set::extract cppreference.com
cppreference.com

std::set::extract

cppreference.com
<tbody> </tbody>
node_type extract( const_iterator position );
(1) ( C++17)
node_type extract( const key_type& x );
(2) ( C++17)
1) , , position
2) , x, , . , .

, , ( , erase())

. , , : , .

position
x

, , , (2)

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 -) []

Web Proxy Viewer  |  New URL  |  Original Page