Eclipse SUMO - Simulation of Urban MObility
|
a minimal map-like container that preserves insertion order More...
#include <json.hpp>
Public Types | |
using | const_iterator = typename Container::const_iterator |
using | Container = std::vector< std::pair< const Key, T >, Allocator > |
using | iterator = typename Container::iterator |
using | key_type = Key |
using | mapped_type = T |
template<typename InputIt > | |
using | require_input_iter = typename std::enable_if< std::is_convertible< typename std::iterator_traits< InputIt >::iterator_category, std::input_iterator_tag >::value >::type |
using | size_type = typename Container::size_type |
using | value_type = typename Container::value_type |
Public Member Functions | |
T & | at (const Key &key) |
const T & | at (const Key &key) const |
size_type | count (const Key &key) const |
std::pair< iterator, bool > | emplace (const key_type &key, T &&t) |
size_type | erase (const Key &key) |
iterator | erase (iterator first, iterator last) |
iterator | erase (iterator pos) |
iterator | find (const Key &key) |
const_iterator | find (const Key &key) const |
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 &key) |
const T & | operator[] (const Key &key) const |
ordered_map (const Allocator &alloc=Allocator()) | |
template<class It > | |
ordered_map (It first, It last, const Allocator &alloc=Allocator()) | |
ordered_map (std::initializer_list< T > init, const Allocator &alloc=Allocator()) | |
a minimal map-like container that preserves insertion order
ordered_map: a minimal map-like container that preserves insertion order for use within nlohmann::basic_json<ordered_map>
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::const_iterator = typename Container::const_iterator |
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::Container = std::vector<std::pair<const Key, T>, Allocator> |
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::iterator = typename Container::iterator |
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::key_type = Key |
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::mapped_type = T |
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::require_input_iter = typename std::enable_if<std::is_convertible<typename std::iterator_traits<InputIt>::iterator_category, std::input_iterator_tag>::value>::type |
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::size_type = typename Container::size_type |
using nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::value_type = typename Container::value_type |
|
inline |
|
inline |
|
inline |
Definition at line 17081 of file json.hpp.
References JSON_THROW.
Referenced by nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::operator[]().
|
inline |
Definition at line 17094 of file json.hpp.
References JSON_THROW.
|
inline |
Definition at line 17058 of file json.hpp.
Referenced by nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::insert(), and nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::operator[]().
|
inline |
Definition at line 17107 of file json.hpp.
Referenced by nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::erase().
|
inline |
Definition at line 17126 of file json.hpp.
References nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::erase().
|
inline |
|
inline |
|
inline |
Definition at line 17238 of file json.hpp.
References nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::insert().
|
inline |
Definition at line 17215 of file json.hpp.
References nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::emplace().
Referenced by nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::insert().
|
inline |
Definition at line 17071 of file json.hpp.
References nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::emplace().
|
inline |
Definition at line 17076 of file json.hpp.
References nlohmann::ordered_map< Key, T, IgnoredLess, Allocator >::at().