\hypertarget{structkblib_1_1detail_1_1str__type}{}\doxysection{kblib\+::detail\+::str\+\_\+type\texorpdfstring{$<$}{<} T, typename \texorpdfstring{$>$}{>} Struct Template Reference}
\label{structkblib_1_1detail_1_1str__type}\index{kblib::detail::str\_type$<$ T, typename $>$@{kblib::detail::str\_type$<$ T, typename $>$}}


Converts arithmetic types to strings, but provides the identity transformation for all other types.  




{\ttfamily \#include $<$kblib/stringops.\+h$>$}

\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
using \mbox{\hyperlink{structkblib_1_1detail_1_1str__type_a5e6a7abdec42c52a7fc542fdc68208e0}{type}} = std\+::string
\begin{DoxyCompactList}\small\item\em Arithmetic types can be converted into strings using the standard library. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static auto \mbox{\hyperlink{structkblib_1_1detail_1_1str__type_a8abc45ad7a5e17e326134453b8906017}{convert}} (T in) -\/$>$ std\+::string
\begin{DoxyCompactList}\small\item\em Forwards to std\+::to\+\_\+string. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename T, typename = arithmetic\+\_\+type\+\_\+t$<$\+T$>$$>$\newline
struct kblib\+::detail\+::str\+\_\+type$<$ T, typename $>$}
Converts arithmetic types to strings, but provides the identity transformation for all other types. 

This is primarily an implementation detail of concat, provided in the main namespace because it might be generally useful. 

Definition at line \mbox{\hyperlink{stringops_8h_source_l00114}{114}} of file \mbox{\hyperlink{stringops_8h_source}{stringops.\+h}}.



\doxysubsection{Member Typedef Documentation}
\mbox{\Hypertarget{structkblib_1_1detail_1_1str__type_a5e6a7abdec42c52a7fc542fdc68208e0}\label{structkblib_1_1detail_1_1str__type_a5e6a7abdec42c52a7fc542fdc68208e0}} 
\index{kblib::detail::str\_type$<$ T, typename $>$@{kblib::detail::str\_type$<$ T, typename $>$}!type@{type}}
\index{type@{type}!kblib::detail::str\_type$<$ T, typename $>$@{kblib::detail::str\_type$<$ T, typename $>$}}
\doxysubsubsection{\texorpdfstring{type}{type}}
{\footnotesize\ttfamily template$<$typename T , typename  = arithmetic\+\_\+type\+\_\+t$<$\+T$>$$>$ \\
using \mbox{\hyperlink{structkblib_1_1detail_1_1str__type}{kblib\+::detail\+::str\+\_\+type}}$<$ T, typename $>$\+::type =  std\+::string}



Arithmetic types can be converted into strings using the standard library. 



Definition at line \mbox{\hyperlink{stringops_8h_source_l00119}{119}} of file \mbox{\hyperlink{stringops_8h_source}{stringops.\+h}}.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{structkblib_1_1detail_1_1str__type_a8abc45ad7a5e17e326134453b8906017}\label{structkblib_1_1detail_1_1str__type_a8abc45ad7a5e17e326134453b8906017}} 
\index{kblib::detail::str\_type$<$ T, typename $>$@{kblib::detail::str\_type$<$ T, typename $>$}!convert@{convert}}
\index{convert@{convert}!kblib::detail::str\_type$<$ T, typename $>$@{kblib::detail::str\_type$<$ T, typename $>$}}
\doxysubsubsection{\texorpdfstring{convert()}{convert()}}
{\footnotesize\ttfamily template$<$typename T , typename  = arithmetic\+\_\+type\+\_\+t$<$\+T$>$$>$ \\
static auto \mbox{\hyperlink{structkblib_1_1detail_1_1str__type}{kblib\+::detail\+::str\+\_\+type}}$<$ T, typename $>$\+::convert (\begin{DoxyParamCaption}\item[{T}]{in }\end{DoxyParamCaption}) -\/$>$ std\+::string \hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Forwards to std\+::to\+\_\+string. 


\begin{DoxyParams}{Parameters}
{\em in} & A numeric value to convert to a string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
std\+::string A string representation of that number. 
\end{DoxyReturn}


Definition at line \mbox{\hyperlink{stringops_8h_source_l00125}{125}} of file \mbox{\hyperlink{stringops_8h_source}{stringops.\+h}}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
kblib/\mbox{\hyperlink{stringops_8h}{stringops.\+h}}\end{DoxyCompactItemize}
