aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llsdutil.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:50 -0500
committerJacek Antonelli2008-08-15 23:45:50 -0500
commit2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch)
tree95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llcommon/llsdutil.h
parentSecond Life viewer sources 1.20.6 (diff)
downloadmeta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llcommon/llsdutil.h')
-rw-r--r--linden/indra/llcommon/llsdutil.h12
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.
106template<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