template < class T, int N > class array; template < typename _Tp > class new_allocator { public: template < typename _Tp1 > struct rebind { typedef new_allocator < _Tp1 > other; }; ~new_allocator() throw() {} }; template < typename _Tp > class allocator:public new_allocator < _Tp > { }; template < typename _Tp, typename _Alloc > struct _Vector_base { typedef typename _Alloc::template rebind < _Tp >::other _Tp_alloc_type; struct _Vector_impl:public _Tp_alloc_type { _Vector_impl(_Tp_alloc_type const &__a):_Tp_alloc_type(__a) { }}; public: _Vector_base(const _Alloc & __a):_M_impl(__a) { } public: _Vector_impl _M_impl; }; template < typename _Tp, typename _Alloc = allocator < _Tp > >class vector:protected _Vector_base < _Tp, _Alloc > { typedef _Vector_base < _Tp, _Alloc > _Base; public: explicit vector(const _Alloc & __a = _Alloc()):_Base(__a) { } }; main() { float field; vector < array < float, 1 > > particles; #pragma omp parallel private(field, particles) ; }