22 #ifndef MED_Vector_HeaderFile
23 #define MED_Vector_HeaderFile
29 # define MED_TVECTOR_CHECK_RANGE
36 template<
typename _Tp,
typename _Alloc = std::allocator<_Tp> >
37 class TVector :
public std::vector<_Tp, _Alloc>
53 if (__n >= this->size())
54 throw std::out_of_range(
"TVector [] access out of range");
60 return superclass::operator[](__n);
66 return superclass::operator[](__n);
89 template<
typename _InputIterator>
90 TVector(_InputIterator __first, _InputIterator __last,
95 template<
typename _Yp,
typename _Al>
103 superclass::operator=(__x);
107 template<
typename _Yp,
typename _Al>
111 this->assign(__y.begin(), __y.end());
118 #if defined(MED_TVECTOR_CHECK_RANGE)
127 #if defined(MED_TVECTOR_CHECK_RANGE)
150 #undef MED_TVECTOR_CHECK_RANGE