diff options
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; | 
