\hypertarget{intrusive__containers_8cpp_source}{}\doxysection{intrusive\+\_\+containers.\+cpp}
\label{intrusive__containers_8cpp_source}\index{tests/intrusive\_containers.cpp@{tests/intrusive\_containers.cpp}}
\mbox{\hyperlink{intrusive__containers_8cpp}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00001}00001 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{intrusive__containers_8h}{kblib/intrusive\_containers.h}}"{}}}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00003}00003 \textcolor{preprocessor}{\#include <string>}}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00004}00004 }
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00005}00005 \textcolor{preprocessor}{\#include "{}catch.hpp"{}}}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00006}00006 }
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00007}00007 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00008}00008 }
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00009}\mbox{\hyperlink{structexample}{00009}} \textcolor{keyword}{struct }\mbox{\hyperlink{structexample}{example}} \{}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00010}\mbox{\hyperlink{structexample_a29c49b47eaca4f5a475f616780554b93}{00010}}    \textcolor{keywordtype}{int} \mbox{\hyperlink{structexample_a29c49b47eaca4f5a475f616780554b93}{first}};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00011}\mbox{\hyperlink{structexample_a73572600e74b3c45d8f193b2620d501d}{00011}}    \textcolor{keywordtype}{int} \mbox{\hyperlink{structexample_a73572600e74b3c45d8f193b2620d501d}{second}};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00012}\mbox{\hyperlink{structexample_a49b60cc5a44567696e1963424ba681ca}{00012}}    std::string \mbox{\hyperlink{structexample_a49b60cc5a44567696e1963424ba681ca}{payload}};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00013}00013 \};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00014}00014 }
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00015}\mbox{\hyperlink{intrusive__containers_8cpp_adc831d7857eecfcb669d35d19bec7d9d}{00015}} \mbox{\hyperlink{intrusive__containers_8cpp_adc831d7857eecfcb669d35d19bec7d9d}{TEST\_CASE}}(\textcolor{stringliteral}{"{}intrusive\_map"{}}) \{}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00016}00016    \textcolor{keyword}{using }X = \mbox{\hyperlink{classkblib_1_1intrusive__hash__map}{kblib::intrusive\_hash\_map<example, \&example::first>}};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00017}00017    X \mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00018}00018    \textcolor{keyword}{const} X b\{\};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00019}00019    \textcolor{keyword}{static\_assert}(std::is\_same\_v<X::key\_type, int>);}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00020}00020    \textcolor{keyword}{static\_assert}(std::is\_same\_v<X::mapped\_type, example>);}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00021}00021    \textcolor{keyword}{static\_assert}(std::is\_same\_v<X::value\_type, example>);}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00022}00022    \textcolor{keyword}{static\_assert}(std::is\_same\_v<X::hasher, kblib::FNV\_hash<>>);}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00023}00023    \textcolor{keyword}{static\_assert}(std::is\_same\_v<X::key\_equal, std::equal\_to<>>);}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00024}00024 \}}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00025}00025 }
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00026}\mbox{\hyperlink{intrusive__containers_8cpp_a85a146bfd697f48bd1861bfa2cc8e1f7}{00026}} \mbox{\hyperlink{intrusive__containers_8cpp_adc831d7857eecfcb669d35d19bec7d9d}{TEST\_CASE}}(\textcolor{stringliteral}{"{}intrusive\_dual\_map"{}}) \{}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00027}00027    \mbox{\hyperlink{classkblib_1_1intrusive__dual__map}{kblib::intrusive\_dual\_map<example, \&example::first, \&example::second>}} \mbox{\hyperlink{namespacekblib_a1490492d82c28f195f0f44a9d88fb2cc}{map}};}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00028}00028 \}}
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00029}00029 }
\DoxyCodeLine{\Hypertarget{intrusive__containers_8cpp_source_l00030}00030 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
