summaryrefslogtreecommitdiffstats
path: root/include/utils/Vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils/Vector.h')
-rw-r--r--include/utils/Vector.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/Vector.h b/include/utils/Vector.h
index 5b5296b..e39a5b7 100644
--- a/include/utils/Vector.h
+++ b/include/utils/Vector.h
@@ -201,6 +201,9 @@ protected:
virtual void do_move_backward(void* dest, const void* from, size_t num) const;
};
+// Vector<T> can be trivially moved using memcpy() because moving does not
+// require any change to the underlying SharedBuffer contents or reference count.
+template<typename T> struct trait_trivial_move<Vector<T> > { enum { value = true }; };
// ---------------------------------------------------------------------------
// No user serviceable parts from here...