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 ////////////////////////////////////////////////////////////////////////////////
14 template <typename T, typename S>
15 std::string pointer_to_string(const T* value,
17 const std::string& null_string,
18 const std::string& prefix,
19 const std::string& suffix)
21 return value ? (prefix + to_string_fn(*value) + suffix) : null_string;
24 } // end namespace stlplus