1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

📝 add docset

This commit is contained in:
Niels Lohmann
2020-08-13 10:52:20 +02:00
parent 8d0aa09ab5
commit 178125ff9b
12 changed files with 167 additions and 3 deletions

View File

@ -24,8 +24,8 @@ class basic_json;
## Specializations
- json
- ordered_json
- [**json**](../json.md) - default specialization
- [**ordered_json**](../ordered_json.md) - specialization that maintains the insertion order of object keys
## Template parameters

View File

@ -0,0 +1,5 @@
# json
```cpp
using json = basic_json<>;
```

View File

@ -0,0 +1,5 @@
# ordered_json
```cpp
using ordered_json = basic_json<nlohmann::ordered_map>;
```

View File

@ -0,0 +1,7 @@
# ordered_map
```cpp
template<class Key, class T, class IgnoredLess = std::less<Key>,
class Allocator = std::allocator<std::pair<const Key, T>>>
struct ordered_map : std::vector<std::pair<const Key, T>, Allocator>;
```