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 | c70e58a62d9f2fed4df0665202c2eb44334dfd8c (patch) | |
tree | ac9f217c6359535d4bb1184f7c8dbbad12526087 /decoder/small_vector.h | |
parent | c31d752edf981ca243fc08d340024d10c023a66e (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 |