diff options
author | Aaron Brashears <aaronb@lindenlab.com> | 2008-04-09 18:03:28 +0000 |
---|---|---|
committer | Aaron Brashears <aaronb@lindenlab.com> | 2008-04-09 18:03:28 +0000 |
commit | 3f08a67dc62ab88ced6baae18dae6b8818de6ced (patch) | |
tree | d50ff2c9c3e2a9c305852cda21c6a664724c0e6a /indra/llcommon/llsdutil.h | |
parent | 16f6d79f769398bbb43f99de734257115a9608ca (diff) |
Result of svn merge -r84383:84400 svn+ssh://svn/svn/linden/branches/migrate-start-location-2 intinto release. QAR-458
Diffstat (limited to 'indra/llcommon/llsdutil.h')
-rw-r--r-- | indra/llcommon/llsdutil.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llcommon/llsdutil.h b/indra/llcommon/llsdutil.h index 17a881d9cb..9f73222bc3 100644 --- a/indra/llcommon/llsdutil.h +++ b/indra/llcommon/llsdutil.h @@ -101,4 +101,16 @@ BOOL compare_llsd_with_template( const LLSD& template_llsd, LLSD& resultant_llsd); +// Simple function to copy data out of input & output iterators if +// there is no need for casting. +template<typename Input> LLSD llsd_copy_array(Input iter, Input end) +{ + LLSD dest; + for (; iter != end; ++iter) + { + dest.append(*iter); + } + return dest; +} + #endif // LL_LLSDUTIL_H |