vbl_array_1d.hxx
Go to the documentation of this file.
1 // This is core/vbl/vbl_array_1d.hxx
2 #ifndef vbl_array_1d_hxx_
3 #define vbl_array_1d_hxx_
4 
5 #include <iostream>
6 #include "vbl_array_1d.h"
7 
8 #ifdef _MSC_VER
9 # include <vcl_msvc_warnings.h>
10 #endif
11 
12 template<class T>
13 std::ostream& operator<< (std::ostream &os, vbl_array_1d<T> const& array)
14 {
15  os << "vbl_array_1d [";
16  for (typename vbl_array_1d<T>::const_iterator i=array.begin();
17  i < array.end(); ++i)
18  os << ' ' << (*i);
19  os << " ]" << std::endl;
20 
21  return os;
22 }
23 
24 #undef VBL_ARRAY_1D_INSTANTIATE
25 #define VBL_ARRAY_1D_INSTANTIATE(T) \
26 template class vbl_array_1d<T >; \
27 template std::ostream& operator<< (std::ostream& , vbl_array_1d<T > const& )
28 
29 #endif
iterator end()
Definition: vbl_array_1d.h:142
A simple container.
Definition: vbl_array_1d.h:28
std::ostream & operator<<(std::ostream &os, vbl_array_1d< T > const &array)
A simple container.
T const * const_iterator
Definition: vbl_array_1d.h:39
iterator begin()
Definition: vbl_array_1d.h:141