1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi"). 6 #include <unordered_map> 12 template<
class Key,
class Value >
14 :
public unordered_map<Key, Value>
16 using Base = unordered_map<Key, Value>;
18 using Base::unordered_map;
19 using Base::operator[];
23 {
return Base::at( key ); }
26 template<
class Key,
class Value,
class Arg >
27 auto is_in(
const unordered_map<Key, Value>& map,
const Arg& v )
29 {
return map.count( v ) > 0; }
A drop-in replacement for bool without implicit conversion from/to types other than bool.
auto is_in(const basic_string_view< Char > &sv, const Char ch) noexcept -> Truth
Truth is a drop-in replacement for bool without implicit conversion from/to types other than bool.
auto operator[](const Key &key) const -> const Value &
CPPX_USE_STD(basic_string, basic_string_view, bitset, char_traits, size)
Macros for generating more concise and clear using statements, primarily $use_cppx and $use_std,...