00001 #ifndef STATIC_CONTAINER_ARRAY_H
00002
00003 #define STATIC_CONTAINER_ARRAY_H
00004
00005 #include <boost/array.hpp>
00006 #include <boost/assert.hpp>
00007 #include "static_container/STATIC_CONTAINER_MEMBERTYPDEF.h"
00008
00009 namespace static_container {
00011 template< class T, size_type N >
00012 class array : public boost::array< T, N > {
00013 public:
00014 STATIC_CONTAINER_MEMBERTYPDEF( T )
00015
00016
00017 reference at(size_type i) { BOOST_ASSERT( i < N ); return elems[i]; }
00018 const_reference at(size_type i) const { BOOST_ASSERT( i < N ); return elems[i]; }
00019 };
00020 }
00021
00022 #endif