diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llsdutil.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llsdutil.h b/linden/indra/llcommon/llsdutil.h index c058185..ae6d694 100644 --- a/linden/indra/llcommon/llsdutil.h +++ b/linden/indra/llcommon/llsdutil.h | |||
@@ -101,4 +101,16 @@ BOOL compare_llsd_with_template( | |||
101 | const LLSD& template_llsd, | 101 | const LLSD& template_llsd, |
102 | LLSD& resultant_llsd); | 102 | LLSD& resultant_llsd); |
103 | 103 | ||
104 | // Simple function to copy data out of input & output iterators if | ||
105 | // there is no need for casting. | ||
106 | template<typename Input> LLSD llsd_copy_array(Input iter, Input end) | ||
107 | { | ||
108 | LLSD dest; | ||
109 | for (; iter != end; ++iter) | ||
110 | { | ||
111 | dest.append(*iter); | ||
112 | } | ||
113 | return dest; | ||
114 | } | ||
115 | |||
104 | #endif // LL_LLSDUTIL_H | 116 | #endif // LL_LLSDUTIL_H |