Replies: 1 comment
-
|
You can change the types in the using pmr_string = std::pmr::string;
template <class T>
using pmr_vector = std::pmr::vector<T>;
template <class K, class V, class Cmp = std::less<K>>
using pmr_map = std::pmr::map<K, V, Cmp>;
using pmr_json = nlohmann::basic_json<
pmr_map, // object container template
pmr_vector, // array container template
pmr_string, // string type
bool, // boolean
std::int64_t, // signed integer
std::uint64_t, // unsigned integer
double, // floating point
std::pmr::polymorphic_allocator // allocator template (used by containers/strings)
>;This is untested though. Would be great if you could share your experience. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
May I ask, is support for std::pmr available now? If not, is there any plan to support it in the future?
Beta Was this translation helpful? Give feedback.
All reactions