1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Andy Rushton
4 // Copyright: (c) Southampton University 1999-2004
5 // (c) Andy Rushton 2004-2009
6 // License: BSD License, see ../docs/license.html
8 ////////////////////////////////////////////////////////////////////////////////
13 template<typename T, typename S>
14 void print_smart_ptr(std::ostream& device,
15 const smart_ptr<T>& value,
17 const std::string& null_string,
18 const std::string& prefix,
19 const std::string& suffix)
24 print_fn(device, *value);
29 device << null_string;
33 template<typename T, typename S>
34 void print_smart_ptr_clone(std::ostream& device,
35 const smart_ptr_clone<T>& value,
37 const std::string& null_string,
38 const std::string& prefix,
39 const std::string& suffix)
44 print_fn(device, *value);
49 device << null_string;
53 template<typename T, typename S>
54 void print_smart_ptr_nocopy(std::ostream& device,
55 const smart_ptr_nocopy<T>& value,
57 const std::string& null_string,
58 const std::string& prefix,
59 const std::string& suffix)
64 print_fn(device, *value);
69 device << null_string;
73 } // end namespace stlplus