About 26,600 results
Open links in new tab
  1. std:: unordered_map - cppreference.com

    Apr 26, 2025 · std::unordered_map is an associative container that contains key-value pairs with unique keys. Search, insertion, and removal of elements have average constant-time complexity.

  2. std:: unordered_set - cppreference.com

    Apr 26, 2025 · std::unordered_set is an associative container that contains a set of unique objects of type Key. Search, insertion, and removal have average constant-time complexity.

  3. std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::

    Dec 4, 2021 · If value_type is not EmplaceConstructible into unordered_map from args, the behavior is undefined. If after the operation the new number of elements is greater than old …

  4. std::set_difference - cppreference.com

    Feb 12, 2025 · Exceptions The overloads with a template parameter named ExecutionPolicy report errors as follows: If execution of a function invoked as part of the algorithm throws an …

  5. std::unordered_set<Key,Hash,KeyEqual,Allocator>:: contains

    Nov 5, 2023 · #include <iostream>#include <unordered_set>int(){std::unordered_set<int>{1234};for(int:{25})if(contains())std::cout<<<<": …

  6. std::unordered_map<Key,T,Hash,KeyEqual,Allocator>:: find

    Dec 4, 2021 · (C++20) unordered_map::equal_range Bucket interface unordered_map::begin(size_type)unordered_map::cbegin(size_type) …

  7. std::flat_map - cppreference.com

    Apr 26, 2025 · Unordered associative unordered_set (C++11) unordered_multiset (C++11) unordered_map (C++11) unordered_multimap (C++11) Adaptors stack queue priority_queue …

  8. std:: set_intersection - cppreference.com

    Feb 12, 2025 · Constructs a sorted range beginning at d_first consisting of elements that are found in both sorted ranges [first1,last1) and [first2,last2).

  9. std::unordered_set<Key,Hash,KeyEqual,Allocator>:: insert

    May 9, 2025 · The value_type must be EmplaceConstructible into unordered_set from std::forward<K>(obj). This overload participates in overload resolution only if Hash and …

  10. std::unordered_map<Key,T,Hash,KeyEqual,Allocator>:: …

    Nov 29, 2021 · Define a const == operator for the class/struct and specialize std::hash// structure in the std namespacestd::unordered_map<std::string>={{(1)"One"}{2"Two"}{3"Three"}};// …