X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fstring_smart_ptr.tpp;fp=src%2Fstlplus%2Fstrings%2Fstring_smart_ptr.tpp;h=0000000000000000000000000000000000000000;hp=994b363dd07912fdfef7b61f2ba936f7dc29b4a6;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/stlplus/strings/string_smart_ptr.tpp b/src/stlplus/strings/string_smart_ptr.tpp deleted file mode 100644 index 994b363..0000000 --- a/src/stlplus/strings/string_smart_ptr.tpp +++ /dev/null @@ -1,44 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -//////////////////////////////////////////////////////////////////////////////// - -namespace stlplus -{ - - template - std::string smart_ptr_to_string(const smart_ptr& value, - S to_string_fn, - const std::string& null_string, - const std::string& prefix, - const std::string& suffix) - { - return value ? (prefix + to_string_fn(*value) + suffix) : null_string; - } - - template - std::string smart_ptr_clone_to_string(const smart_ptr_clone& value, - S to_string_fn, - const std::string& null_string, - const std::string& prefix, - const std::string& suffix) - { - return value ? (prefix + to_string_fn(*value) + suffix) : null_string; - } - - template - std::string smart_ptr_nocopy_to_string(const smart_ptr_nocopy& value, - S to_string_fn, - const std::string& null_string, - const std::string& prefix, - const std::string& suffix) - { - return value ? (prefix + to_string_fn(*value) + suffix) : null_string; - } - -} // end namespace stlplus -