template<typename Key, typename Value, size_t kArraySize>
class pw::containers::FlatMap< Key, Value, kArraySize >
A simple, fixed-size associative array with lookup by key or value.
The keys do not need to be sorted as the constructor will sort the items if need be.
|
|
constexpr | FlatMap (const std::array< value_type, kArraySize > &items) |
| |
|
constexpr | FlatMap (std::array< value_type, kArraySize > &&items) |
| |
|
template<typename... Items, typename = std::enable_if_t< std::conjunction_v<std::is_same<Items, value_type>...>>> |
| constexpr | FlatMap (const Items &... items) |
| |
|
| FlatMap (FlatMap &)=delete |
| |
|
FlatMap & | operator= (FlatMap &)=delete |
| |
|
constexpr size_type | size () const |
| |
|
constexpr size_type | empty () const |
| |
|
constexpr size_type | max_size () const |
| |
| constexpr mapped_type & | at (const key_type &key) |
| |
| constexpr const mapped_type & | at (const key_type &key) const |
| |
|
constexpr bool | contains (const key_type &key) const |
| |
|
constexpr const_iterator | find (const key_type &key) const |
| |
|
constexpr const_iterator | lower_bound (const key_type &key) const |
| |
|
constexpr const_iterator | upper_bound (const key_type &key) const |
| |
|
constexpr std::pair< const_iterator, const_iterator > | equal_range (const key_type &key) const |
| |
|
constexpr const_iterator | begin () const |
| |
|
constexpr const_iterator | cbegin () const |
| |
|
constexpr const_iterator | end () const |
| |
|
constexpr const_iterator | cend () const |
| |
| constexpr mapped_iterator | mapped_begin () |
| |
| constexpr mapped_iterator | mapped_end () |
| |