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> |
||
|---|---|---|
| .. | ||
| call_std | ||
| cpp_future.hpp | ||
| detected.hpp | ||
| identity_tag.hpp | ||
| is_sax.hpp | ||
| type_traits.hpp | ||
| void_t.hpp | ||