28 #ifndef _GVECTORTEMPL_H_
29 #define _GVECTORTEMPL_H_ 1
48 typedef typename gVectorTempl::size_type size_type;
49 typedef typename gVectorTempl::iterator iterator;
50 typedef typename gVectorTempl::difference_type difference_type;
51 typedef typename gVectorTempl::reference reference;
52 typedef typename gVectorTempl::const_reference const_reference;
61 :std::vector<T>((std::vector<T>) right)
66 :std::vector<T>(n, value)
75 reference operator [](difference_type index)
77 assert(index >=0 && index < static_cast<difference_type>(gVectorTempl::size()));
80 return std::vector<T>::operator[](index);
83 const_reference operator [](difference_type index)
const
85 assert(index >=0 && index < static_cast<difference_type>(gVectorTempl::size()));
87 return std::vector<T>::operator[](index);
95 inline std::ostream& operator<<(std::ostream& s, const gVectorTempl<T>& m)
97 typedef typename gVectorTempl<T>::size_type size_type;
99 for(size_type i = 0; i < m.size(); ++i)
101 s << std::endl << i <<
" : ";
109 #endif // _GVECTORTEMPL_H_