Makes usings of StringViewDictionary public
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-05-16 17:10:50 +02:00
parent f8ba0b32b6
commit eec26f2c12
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
namespace ArbUt { namespace ArbUt {
/// @brief Wrapper around unordered_map, allowing safer access and adding several helper methods. /// @brief Wrapper around unordered_map, allowing safer access and adding several helper methods.
template <class ValueT> class StringViewDictionary { template <class ValueT> class StringViewDictionary {
private: public:
struct StringViewHash { struct StringViewHash {
using hash_type = std::hash<StringView>; using hash_type = std::hash<StringView>;
using is_transparent = void; using is_transparent = void;
@ -21,11 +21,11 @@ namespace ArbUt {
}; };
using map_type = typename std::unordered_map<StringView, ValueT, StringViewHash, std::equal_to<>>; using map_type = typename std::unordered_map<StringView, ValueT, StringViewHash, std::equal_to<>>;
map_type _map;
using iterator = typename map_type::iterator; using iterator = typename map_type::iterator;
using const_iterator = typename map_type::const_iterator; using const_iterator = typename map_type::const_iterator;
private:
map_type _map;
public: public:
/// @brief The type used for the indexer of the dictionary. /// @brief The type used for the indexer of the dictionary.
typedef StringView keyType; typedef StringView keyType;