|
T & | at (const key_type &key) |
|
const T & | at (const key_type &key) const |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
T & | at (KeyType &&key) |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
const T & | at (KeyType &&key) const |
|
size_type | count (const key_type &key) const |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
size_type | count (KeyType &&key) const |
|
std::pair< iterator, bool > | emplace (const key_type &key, T &&t) |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
std::pair< iterator, bool > | emplace (KeyType &&key, T &&t) |
|
size_type | erase (const key_type &key) |
|
iterator | erase (iterator first, iterator last) |
|
iterator | erase (iterator pos) |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
size_type | erase (KeyType &&key) |
|
iterator | find (const key_type &key) |
|
const_iterator | find (const key_type &key) const |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
iterator | find (KeyType &&key) |
|
std::pair< iterator, bool > | insert (const value_type &value) |
|
template<typename InputIt , typename = require_input_iter<InputIt>> |
void | insert (InputIt first, InputIt last) |
|
std::pair< iterator, bool > | insert (value_type &&value) |
|
T & | operator[] (const key_type &key) |
|
const T & | operator[] (const key_type &key) const |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
T & | operator[] (KeyType &&key) |
|
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0> |
const T & | operator[] (KeyType &&key) const |
|
| ordered_map () noexcept(noexcept(Container())) |
|
| ordered_map (const Allocator &alloc) noexcept(noexcept(Container(alloc))) |
|
template<class It > |
| ordered_map (It first, It last, const Allocator &alloc=Allocator()) |
|
| ordered_map (std::initializer_list< value_type > init, const Allocator &alloc=Allocator()) |
|
template<class Key, class T, class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
struct ordered_map< Key, T, IgnoredLess, Allocator >
a minimal map-like container that preserves insertion order
- See also
- https://json.nlohmann.me/api/ordered_map/
ordered_map: a minimal map-like container that preserves insertion order for use within nlohmann::basic_json<ordered_map>
Definition at line 3427 of file json.hpp.
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
T& ordered_map< Key, T, IgnoredLess, Allocator >::at |
( |
KeyType && |
key | ) |
|
|
inline |
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
const T& ordered_map< Key, T, IgnoredLess, Allocator >::at |
( |
KeyType && |
key | ) |
const |
|
inline |
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
std::pair<iterator, bool> ordered_map< Key, T, IgnoredLess, Allocator >::emplace |
( |
KeyType && |
key, |
|
|
T && |
t |
|
) |
| |
|
inline |
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<typename InputIt , typename = require_input_iter<InputIt>>
void ordered_map< Key, T, IgnoredLess, Allocator >::insert |
( |
InputIt |
first, |
|
|
InputIt |
last |
|
) |
| |
|
inline |
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
T& ordered_map< Key, T, IgnoredLess, Allocator >::operator[] |
( |
KeyType && |
key | ) |
|
|
inline |
template<class Key , class T , class IgnoredLess = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
template<class KeyType , detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
const T& ordered_map< Key, T, IgnoredLess, Allocator >::operator[] |
( |
KeyType && |
key | ) |
const |
|
inline |