diff options
Diffstat (limited to 'decoder/small_vector.h')
-rw-r--r-- | decoder/small_vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/decoder/small_vector.h b/decoder/small_vector.h index 202b72c9..b5d86231 100644 --- a/decoder/small_vector.h +++ b/decoder/small_vector.h @@ -254,4 +254,9 @@ public: typedef SmallVector<int,2> SmallVectorInt; +template <class T,int N> +void memcpy(void *out,SmallVector<T,N> const& v) { + std::memcpy(out,v.begin(),v.size()*sizeof(T)); +} + #endif |