Bidirectional Hash Map. Behaves like a regular map, but also implements fast reversed look-up in trade for memory.
More...
|
| | BidirectionalHashMap (std::initializer_list< typename Base::value_type_non_const > init) |
| |
| constexpr | BidirectionalHashMap ()=default |
| |
| constexpr std::optional< to_type > | getTo (const from_type &key) const noexcept |
| |
| constexpr std::optional< from_type > | getFrom (const to_type &key) const noexcept |
| |
template<typename T >
requires (__impl::UniversalType<T, from_type> || __impl::UniversalType<T, to_type>) && (not std::convertible_to<from_type,to_type>) |
| constexpr auto | get (const T &key) const noexcept |
| |
template<Mapable from_type, Mapable to_type>
class fishnet::util::BidirectionalHashMap< from_type, to_type >
Bidirectional Hash Map. Behaves like a regular map, but also implements fast reversed look-up in trade for memory.
- Template Parameters
-
| from_type | from type |
| to_type | to type |