1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

Have 4 template parameters for ordered_map

This commit is contained in:
gatopeich
2020-06-29 17:32:55 +01:00
parent cf18ba2394
commit 49f26a0250
2 changed files with 7 additions and 7 deletions

View File

@ -11,10 +11,10 @@ namespace nlohmann
/// ordered_map: a minimal map-like container that preserves insertion order
/// for use within nlohmann::basic_json<ordered_map>
template <class Key, class T, class IgnoredLess = std::less<Key>,
class Allocator = std::allocator<std::pair<const Key, T>>,
class Container = std::vector<std::pair<const Key, T>, Allocator>>
struct ordered_map : Container
class Allocator = std::allocator<std::pair<const Key, T>>>
struct ordered_map : std::vector<typename Allocator::value_type, Allocator>
{
using Container = std::vector<typename Allocator::value_type, Allocator>;
using key_type = Key;
using mapped_type = T;
using typename Container::iterator;