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> |
||
|---|---|---|
| .. | ||
| conversions | ||
| input | ||
| iterators | ||
| meta | ||
| output | ||
| exceptions.hpp | ||
| hash.hpp | ||
| json_pointer.hpp | ||
| json_ref.hpp | ||
| macro_scope.hpp | ||
| macro_unscope.hpp | ||
| string_concat.hpp | ||
| string_escape.hpp | ||
| value_t.hpp | ||