mirror of
https://github.com/nlohmann/json.git
synced 2026-10-15 10:47:13 +00:00
Move the out_of_range message construction of at(size_type) and at(key) into out-of-line, never-inlined helpers so the accessors inline like operator[]. Convert JSON arrays into standard containers by looping over the stored array_t and calling push_back (falling back to insert(end()) for containers without push_back, such as std::set) instead of std::transform with std::inserter. Add benchmarks. Signed-off-by: Niels Lohmann <mail@nlohmann.me>