28 #ifndef _GVECTORTEMPL_H_
29 #define _GVECTORTEMPL_H_ 1
46 typedef typename gVectorTempl::size_type size_type;
47 typedef typename gVectorTempl::iterator iterator;
48 typedef typename gVectorTempl::difference_type difference_type;
49 typedef typename gVectorTempl::reference reference;
50 typedef typename gVectorTempl::const_reference const_reference;
58 :std::vector<T>((std::vector<T>) right)
63 :std::vector<T>(n, value)
72 reference operator [](difference_type index)
74 assert(index >=0 && index < static_cast<difference_type>(gVectorTempl::size()));
77 return std::vector<T>::operator[](index);
80 const_reference operator [](difference_type index)
const
82 assert(index >=0 && index < static_cast<difference_type>(gVectorTempl::size()));
84 return std::vector<T>::operator[](index);
92 inline std::ostream& operator<<(std::ostream& s, const gVectorTempl<T>& m)
94 typedef typename gVectorTempl<T>::size_type size_type;
96 for(size_type i = 0; i < m.size(); ++i)
98 s << std::endl << i <<
" : ";
106 #endif // _GVECTORTEMPL_H_