Replies: 1 comment
-
Glaze uses C++20 concepts to support types, this means that Glaze supports In template <class T>
concept readable_map_t = !custom_read<T> && !meta_value_t<T> && !str_t<T> && range<T> &&
pair_t<range_value_t<T>> && map_subscriptable<std::decay_t<T>>;
template <class T>
concept writable_map_t = !custom_write<T> && !meta_value_t<T> && !str_t<T> && range<T> &&
pair_t<range_value_t<T>> && map_subscriptable<std::decay_t<T>>; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to find the source code for supporting std::map / std::unordered_map in glaze, but couldn't find it.
Could you point to the source and/or give an example how to support other object/map containers?
There are containers, e.g. boost.unordered that are a lot faster than std:: which I would like to use... :)
Perhaps this would increase the performance of json pointer lookup (through one or more object containers) as well?
Beta Was this translation helpful? Give feedback.
All reactions