nlohmann::ordered_map::ordered_map

constructs an ordered_map from an initializer list of key-value pairs

Synopsis

Declared in <nlohmann/ordered_map.hpp>

ordered_map(
    std::initializer_list<value_type> init,
    Allocator const& alloc = Allocator());

Parameters

NameDescription
init [in]initializer list of key-value pairs to insert
alloc [in]allocator to use for the underlying container