\hypertarget{delayed__construct_8cpp_source}{}\doxysection{delayed\+\_\+construct.\+cpp}
\label{delayed__construct_8cpp_source}\index{tests/delayed\_construct.cpp@{tests/delayed\_construct.cpp}}
\mbox{\hyperlink{delayed__construct_8cpp}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00001}00001 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{delayed__construct_8h}{kblib/delayed\_construct.h}}"{}}}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00002}00002 \textcolor{preprocessor}{\#include "{}catch.hpp"{}}}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00003}00003 }
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00004}00004 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00005}00005 }
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00006}\mbox{\hyperlink{delayed__construct_8cpp_aa28271edd26bc5fa329bcdec10058d2c}{00006}} \mbox{\hyperlink{delayed__construct_8cpp_aa28271edd26bc5fa329bcdec10058d2c}{TEST\_CASE}}(\textcolor{stringliteral}{"{}delayed\_construct"{}}) \{}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00007}00007    \mbox{\hyperlink{classkblib_1_1delayed__construct}{kblib::delayed\_construct<int>}} \mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}}(0), b(0);}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00008}00008    REQUIRE(\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}} == b);}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00009}00009    REQUIRE(not (\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}} != b));}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00010}00010    REQUIRE(not (\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}} < b));}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00011}00011    REQUIRE(\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}} <= b);}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00012}00012    REQUIRE(not (\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}} > b));}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00013}00013    REQUIRE(\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}} >= b);}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00014}00014 \}}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00015}00015 }
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00016}\mbox{\hyperlink{classno__hash}{00016}} \textcolor{keyword}{class }\mbox{\hyperlink{classno__hash}{no\_hash}} \{\};}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00017}00017 }
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00018}00018 \textcolor{keyword}{static\_assert}(}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00019}00019     std::is\_default\_constructible\_v<std::hash<kblib::delayed\_construct<int>>>,}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00020}00020     \textcolor{stringliteral}{"{}hashing a delayed\_construct<T> is possible if hashing T is possible"{}});}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00021}00021 \textcolor{keyword}{static\_assert}(not std::is\_default\_constructible\_v<}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00022}00022                   std::hash<kblib::delayed\_construct<no\_hash>>>,}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00023}00023               \textcolor{stringliteral}{"{}hashing a delayed\_construct<T> is not possible if hashing T is "{}}}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00024}00024               \textcolor{stringliteral}{"{}not possible"{}});}
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00025}00025 }
\DoxyCodeLine{\Hypertarget{delayed__construct_8cpp_source_l00026}00026 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
