\hypertarget{traits_8cpp_source}{}\doxysection{traits.\+cpp}
\label{traits_8cpp_source}\index{tests/traits.cpp@{tests/traits.cpp}}
\mbox{\hyperlink{traits_8cpp}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00001}00001 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{traits_8h}{kblib/traits.h}}"{}}}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00002}00002 \textcolor{preprocessor}{\#include <catch.hpp>}}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00003}00003 }
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00004}\mbox{\hyperlink{structk}{00004}} \textcolor{keyword}{struct }\mbox{\hyperlink{structk}{k}} \{}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00005}\mbox{\hyperlink{structk_a555df0db7cb6b6a3b0be34d97a81ec2c}{00005}}    \textcolor{keywordtype}{char} \mbox{\hyperlink{structk_a555df0db7cb6b6a3b0be34d97a81ec2c}{c}}[10];}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00006}00006 \};}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00007}00007 }
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00008}00008 \textcolor{keyword}{static\_assert}(not std::is\_reference<\mbox{\hyperlink{namespacekblib_a8944b438ec39c111c64a1e8501fd7828}{kblib::member\_of\_t}}<\textcolor{keyword}{decltype}(\&\mbox{\hyperlink{structk_a555df0db7cb6b6a3b0be34d97a81ec2c}{k::c}})>>::value,}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00009}00009               \textcolor{stringliteral}{"{}"{}});}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00010}00010 \textcolor{keyword}{static\_assert}(\mbox{\hyperlink{structkblib_1_1is__iterable}{kblib::is\_iterable<int[10]>::value}}, \textcolor{stringliteral}{"{}"{}});}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00011}00011 }
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00012}00012 \textcolor{keyword}{static} \textcolor{keywordtype}{void} f(\textcolor{keywordtype}{int} i, std::string s) \{\}}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00013}00013 }
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00014}\mbox{\hyperlink{traits_8cpp_a1c9898030850dd88e9741eda7a86b371}{00014}} \mbox{\hyperlink{traits_8cpp_a1c9898030850dd88e9741eda7a86b371}{TEST\_CASE}}(\textcolor{stringliteral}{"{}type\_constant"{}}) \{}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00015}00015    \textcolor{keyword}{auto} fw = \mbox{\hyperlink{structkblib_1_1type__constant}{kblib::type\_constant}}<\textcolor{keyword}{decltype}(f)*, f>\{\};}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00016}00016    \textcolor{keywordtype}{int} i\{\};}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00017}00017    std::string s;}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00018}00018    f(i, s);}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00019}00019    fw(i, s);}
\DoxyCodeLine{\Hypertarget{traits_8cpp_source_l00020}00020 \}}

\end{DoxyCode}
