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

Name

Description

init [in]

initializer list of key‐value pairs to insert

alloc [in]

allocator to use for the underlying container

Created with MrDocs