X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FString.hh;h=05000243b8f9c0fcf28aed10567124b5b4f7c084;hb=4101c2b818ec67e7469ebb44f030eed2185c4ab0;hp=ed1e65bd0f251cb9375eab6636c7628554d68c31;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Utils/String.hh b/senf/Utils/String.hh index ed1e65b..0500024 100644 --- a/senf/Utils/String.hh +++ b/senf/Utils/String.hh @@ -30,7 +30,7 @@ #include //#include "String.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { @@ -42,6 +42,22 @@ namespace senf { template std::string stringJoin(ForwardReadableRange const & range, std::string sep); + /** \brief Get string representation + + Returns the result of streaming the argument into a standard library string-based + stream and then out as a std::string object. The conversion is done with + boost::lexical_cast. The call is equivalent to +
+            boost::lexical_cast(t);
+        
+ \pre + t must be OutputStreamable, + meaning that an operator\<\< is defined\n + t must be CopyConstructible + + \see + boost::lexical_cast + */ template std::string str(T const & t); @@ -54,7 +70,7 @@ namespace senf { detail::lexical_caster lexical_cast(); } -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// //#include "String.cci" #include "String.ct" #include "String.cti"