Home
Random
Log in
Settings
About David's Wiki
Disclaimers
David's Wiki
Search
C++: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
C++
(view source)
Revision as of 00:04, 2 July 2022
28 bytes added
,
2 July 2022
→std::unordered_set
Revision as of 14:37, 30 June 2022
(
view source
)
David
(
talk
|
contribs
)
(
→std::unordered_set
)
← Older edit
Revision as of 00:04, 2 July 2022
(
view source
)
David
(
talk
|
contribs
)
(
→std::unordered_set
)
Newer edit →
Line 559:
Line 559:
// Check contains
// Check contains
my_set.find(5) != my_set.end();
my_set.find(5) != my_set.end();
my_set.contains(5); # C++20
// Remove
// Remove
my_set.erase(5);
my_set.erase(5);
David
Bureaucrats
,
Interface administrators
,
Administrators
5,337
edits