diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-07-03 14:03:56 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-07-03 14:03:56 -0400 |
commit | 66fb45ddc7dd1a994f6b8312687cb73dbb1281dd (patch) | |
tree | 1b9547a028d74f9d1aba9260e6ad6e69bfab9992 /indra/newview/llcofwearables.cpp | |
parent | 24e6c4ae23b24c7da36b2579069a062ffd882059 (diff) |
Add llsd::toArray() and llsd::toMap() utility functions.
These encapsulate looping over a C++ iterable (be it a sequence container or
an associative container) and returning an LLSD array or map, respectively,
derived from the C++ container. By default, each C++ container item is
directly converted to LLSD.
Also make LLSDParam<LLSD> slightly more efficient by using
std::vector::emplace_back() instead of push_back(), which supports
std::vector<std::unique_ptr>, so we need not use std::shared_ptr.
Diffstat (limited to 'indra/newview/llcofwearables.cpp')
0 files changed, 0 insertions, 0 deletions