| 5101 | template <template <typename> typename allocator_> |
| 5102 | |
| 5103 | struct json_containers_for_alloc { |
| 5104 | // Must allow `map<Key, Value, typename... Args>`, replaces `std::map` |
| 5105 | template <typename key_type_, typename value_type_, typename...> |
| 5106 | using object = std::map<key_type_, value_type_, std::less<>, allocator_<std::pair<key_type_ const, value_type_>>>; |
| 5107 | |
| 5108 | // Must allow `vector<Value, typename... Args>`, replaces `std::vector` |
| 5109 | template <typename value_type_, typename...> |
| 5110 | using array = std::vector<value_type_, allocator_<value_type_>>; |
| 5111 | |
| 5112 | using string = std::basic_string<char, std::char_traits<char>, allocator_<char>>; |
| 5113 | }; |
| 5114 | |
| 5115 | template <template <typename> typename allocator_> |
| 5116 | using json_with_alloc = nlohmann::basic_json< // |
nothing calls this directly
no outgoing calls
no test coverage detected