X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FString.hh;h=5a0c8c06712983e3ac9df04525e8c8d2a374ec44;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=ed1e65bd0f251cb9375eab6636c7628554d68c31;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Utils/String.hh b/senf/Utils/String.hh index ed1e65b..5a0c8c0 100644 --- a/senf/Utils/String.hh +++ b/senf/Utils/String.hh @@ -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);