diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 23:57:46 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 23:57:46 +0000 |
commit | f6cd72d39cdc7a034b36ad73d613f6f268826e48 (patch) | |
tree | 6ca964655dc8e2989087d1b32c26f60f7ea6aece /decoder/value_array.h | |
parent | 232cf4e95235bc29bf04e4ea2bf1483d1baf2b7d (diff) |
fabulous string tokenization tested
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@350 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/value_array.h')
-rwxr-xr-x | decoder/value_array.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/value_array.h b/decoder/value_array.h index 7401938a..042247a1 100755 --- a/decoder/value_array.h +++ b/decoder/value_array.h @@ -17,6 +17,8 @@ template <class T, class A = std::allocator<T> > class ValueArray : A // private inheritance so stateless allocator adds no size. { public: + const int SV_MAX=sizeof(T)/sizeof(T*)>1?sizeof(T)/sizeof(T*):1; + //space optimization: SV_MAX T will fit inside what would otherwise be a pointer to heap data. todo in the far future if bored. typedef T value_type; typedef T& reference; typedef T const& const_reference; |