]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_smart_ptr.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / string_smart_ptr.hpp
1 #ifndef STLPLUS_STRING_SMART_PTR
2 #define STLPLUS_STRING_SMART_PTR
3 ////////////////////////////////////////////////////////////////////////////////
4
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
9
10 // Generate a string representation of a smart pointer
11
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "strings_fixes.hpp"
14 #include "smart_ptr.hpp"
15 #include <string>
16
17 ////////////////////////////////////////////////////////////////////////////////
18
19 namespace stlplus
20 {
21
22 template<typename T, typename S>
23 std::string smart_ptr_to_string(const smart_ptr<T>& value,
24 S to_string_fn,
25 const std::string& null_string = "<null>",
26 const std::string& prefix = "(",
27 const std::string& suffix = ")");
28
29 template<typename T, typename S>
30 std::string smart_ptr_clone_to_string(const smart_ptr_clone<T>& value,
31 S to_string_fn,
32 const std::string& null_string = "<null>",
33 const std::string& prefix = "(",
34 const std::string& suffix = ")");
35
36 template<typename T, typename S>
37 std::string smart_ptr__nocopy_to_string(const smart_ptr_nocopy<T>& value,
38 S to_string_fn,
39 const std::string& null_string = "<null>",
40 const std::string& prefix = "(",
41 const std::string& suffix = ")");
42
43
44 } // end namespace stlplus
45
46 #include "string_smart_ptr.tpp"
47 #endif
This page took 0.03334 seconds and 4 git commands to generate.