diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 02:27:28 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 02:27:28 +0000 |
commit | 8c6536c56c728213b9e1190f0c9f76f7b4948140 (patch) | |
tree | ab192e932935ea25f77924836e40e9adf0034caa /decoder/small_vector.h | |
parent | 9ac87abac855aaaa6c1dcf686b38443092a10ce6 (diff) |
bottom-up FF from fsa FF - WordPenaltyFsa - needs debugging
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@373 ec762483-ff6d-05da-a07a-a48fb63a330f
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 |