json/include/nlohmann
Florian Albrechtskirchinger 6df2a1a2cd Expose the actual comparison function used by object_t
nlohmann::ordered_map uses a different comparison function than the one
provided via template parameter.
* Introduce a type trait to detect if object_t has a key_compare member.
* Rename object_comparator_t to default_object_comparator_t.
* Add object_comparator_t to be conditionally defined as
  object_t::key_compare, if available, or default_object_comparator_t
  otherwise.
* Update the documentation accordingly.

Co-authored-by: Niels Lohmann <niels.lohmann@gmail.com>
2022-04-25 22:49:13 +02:00
..
detail Expose the actual comparison function used by object_t 2022-04-25 22:49:13 +02:00
thirdparty/hedley 🚨 add new CI and fix warnings (#2561) 2021-03-24 07:15:18 +01:00
adl_serializer.hpp Consolidate documentation (#3071) 2021-12-29 13:41:01 +01:00
byte_container_with_subtype.hpp Consolidate documentation (#3071) 2021-12-29 13:41:01 +01:00
json_fwd.hpp Consolidate documentation (#3071) 2021-12-29 13:41:01 +01:00
json.hpp Expose the actual comparison function used by object_t 2022-04-25 22:49:13 +02:00
ordered_map.hpp Replace == with key_compare in ordered_map 2022-04-25 22:45:44 +02:00