Utils/Termlib: Extend the completion API
[senf.git] / Utils / String.hh
index 1bdf93e..ee71b55 100644 (file)
@@ -23,8 +23,8 @@
 /** \file
     \brief String public header */
 
-#ifndef HH_String_
-#define HH_String_ 1
+#ifndef HH_SENF_Utils_String_
+#define HH_SENF_Utils_String_ 1
 
 // Custom includes
 #include <string>
@@ -42,12 +42,22 @@ namespace senf {
     template <class ForwardReadableRange>
     std::string stringJoin(ForwardReadableRange const & range, std::string sep);
 
+    template <class T>
+    std::string str(T const & t);
+
+    template <class Target, class Source>
+    Target lexical_cast(Source const & arg);
+
+    namespace detail { template <class Target> class lexical_caster; }
+
+    template <class Target>
+    detail::lexical_caster<Target> lexical_cast();
 }
 
 ///////////////////////////////hh.e////////////////////////////////////////
 //#include "String.cci"
 #include "String.ct"
-//#include "String.cti"
+#include "String.cti"
 #endif
 
 \f