template<typename TKey, typename TValue>
FlatMap class
Public types
- using KeyType = TKey
- using ValueType = TValue
- using Entry = std::pair<TKey, TValue>
- using Iterator = std::vector<Entry>::iterator
- using ConstIterator = std::vector<Entry>::const_iterator
Constructors, destructors, conversion operators
- FlatMap() defaulted
Public functions
- void reserve(size_t capacity)
- auto insert_or_assign(const TKey& key, const TValue& value) -> Iterator
-
auto find(const TKey& key) -> FORCE_
INLINE TValue* -
auto find(const TKey& key) const -> FORCE_
INLINE const TValue* - auto operator[](const TKey& key) -> TValue&
-
auto findOrAdd(const TKey& key) -> FORCE_
INLINE TValue& -
auto contains(const TKey& key) const -> FORCE_
INLINE bool - auto erase(const TKey& key) -> bool
- void clear()
- auto size() const -> size_t
- auto empty() const -> bool
- auto begin() -> Iterator
- auto end() -> Iterator
- auto begin() const -> ConstIterator
- auto end() const -> ConstIterator
- auto entries() const -> const std::vector<Entry>&
- auto count() const -> size_t