00001 // This is core/vbl/vbl_array_1d.txx 00002 #ifndef vbl_array_1d_txx_ 00003 #define vbl_array_1d_txx_ 00004 00005 #include "vbl_array_1d.h" 00006 00007 #include <vcl_iostream.h> 00008 00009 template<class T> 00010 vcl_ostream& operator<< (vcl_ostream &os, vbl_array_1d<T> const& array) 00011 { 00012 os << "vbl_array_1d ["; 00013 for (typename vbl_array_1d<T>::const_iterator i=array.begin(); 00014 i < array.end(); ++i) 00015 os << ' ' << (*i); 00016 os << " ]" << vcl_endl; 00017 00018 return os; 00019 } 00020 00021 #undef VBL_ARRAY_1D_INSTANTIATE 00022 #define VBL_ARRAY_1D_INSTANTIATE(T) \ 00023 template class vbl_array_1d<T >; \ 00024 template vcl_ostream& operator<< (vcl_ostream& , vbl_array_1d<T > const& ) 00025 00026 #endif