Contains utilities for working with containers with utils::StrCaseHash and utils::StrIcaseHash.
Definition in file str_icase_containers.hpp.
Go to the source code of this file.
#include <unordered_map>#include <unordered_set>#include <userver/utils/algo.hpp>#include <userver/utils/str_icase.hpp>
 Include dependency graph for str_icase_containers.hpp:Namespaces | |
| namespace | utils | 
| Utilities.  | |
Functions | |
| template<typename Key , typename Value > | |
| auto | utils::WithSafeHash (const std::unordered_map< Key, Value > &map) | 
| Converts an unordered [multi-]map or set with the default hash to a map with utils::StrCaseHash. This might be useful when converting guaranteed-to-be-safe data to a common operating format.   | |
| template<typename Key , typename Value > | |
| auto | utils::WithSafeHash (std::unordered_map< Key, Value > &&map) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.   | |
| template<typename Key , typename Value > | |
| auto | utils::WithSafeHash (const std::unordered_multimap< Key, Value > &map) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.   | |
| template<typename Key , typename Value > | |
| auto | utils::WithSafeHash (std::unordered_multimap< Key, Value > &&map) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.   | |
| template<typename Key > | |
| auto | utils::WithSafeHash (const std::unordered_set< Key > &map) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.   | |
| template<typename Key > | |
| auto | utils::WithSafeHash (std::unordered_set< Key > &&map) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.   | |
| template<typename Key > | |
| auto | utils::WithSafeHash (const std::unordered_multiset< Key > &map) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.   | |
| template<typename Key > | |
| auto | utils::WithSafeHash (std::unordered_multiset< Key > &&map) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.   | |