]>
Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_smart_ptr.hpp
1 #ifndef STLPLUS_PRINT_SMART_PTR
2 #define STLPLUS_PRINT_SMART_PTR
3 ////////////////////////////////////////////////////////////////////////////////
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
10 // Generate a string representation of a smart pointer
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "strings_fixes.hpp"
14 #include "smart_ptr.hpp"
18 ////////////////////////////////////////////////////////////////////////////////
23 template<typename T
, typename S
>
24 void print_smart_ptr(std::ostream
& device
,
25 const smart_ptr
<T
>& value
,
27 const std::string
& null_string
= "<null>",
28 const std::string
& prefix
= "(",
29 const std::string
& suffix
= ")");
31 template<typename T
, typename S
>
32 void print_smart_ptr_clone(std::ostream
& device
,
33 const smart_ptr_clone
<T
>& value
,
35 const std::string
& null_string
= "<null>",
36 const std::string
& prefix
= "(",
37 const std::string
& suffix
= ")");
39 template<typename T
, typename S
>
40 void print_smart_ptr_nocopy(std::ostream
& device
,
41 const smart_ptr_nocopy
<T
>& value
,
43 const std::string
& null_string
= "<null>",
44 const std::string
& prefix
= "(",
45 const std::string
& suffix
= ")");
48 } // end namespace stlplus
50 #include "print_smart_ptr.tpp"
This page took 0.03346 seconds and 4 git commands to generate.