2 #ifndef vil_smart_ptr_hxx_ 3 #define vil_smart_ptr_hxx_ 8 # include <vcl_msvc_warnings.h> 34 return os <<
"vil_smart_ptr<" 36 <<
">(" << static_cast<const void*>( r.
as_pointer()) <<
')';
41 #undef VIL_SMART_PTR_INSTANTIATE 42 #define VIL_SMART_PTR_INSTANTIATE(T,...) \ 43 template class __VA_ARGS__ vil_smart_ptr<T >; \ 44 template <> struct __VA_ARGS__ vil_smart_ptr_T_as_string<T > \ 45 { static char const *str() { return #T; } }; \ 46 template __VA_ARGS__ std::ostream& operator<< (std::ostream&, vil_smart_ptr<T > const&) 48 #endif // vil_smart_ptr_hxx_
A templated smart pointer class.
std::ostream & operator<<(std::ostream &os, vil_smart_ptr< T > const &r)
T * as_pointer() const
These methods all return the raw/dumb pointer.
Contains a templated smart pointer class.
static char const * str()