mirror of
https://github.com/nlohmann/json.git
synced 2025-07-29 23:01:16 +03:00
Use AllocatorType<ObjectType::value_type>,
instead of hard-coding it for std::map's value_type
This commit is contained in:
@ -11,8 +11,8 @@ 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 IgnoredAllocator = std::allocator<std::pair<Key, T>>,
|
||||
class Container = std::vector<std::pair<Key, T>>>
|
||||
class Allocator = std::allocator<std::pair<Key, T>>,
|
||||
class Container = std::vector<std::pair<Key, T>, Allocator>>
|
||||
struct ordered_map : Container
|
||||
{
|
||||
using key_type = Key;
|
||||
|
Reference in New Issue
Block a user