\hypertarget{struct_k_b_l_i_b___n_s_1_1equivalent}{}\doxysection{KBLIB\+\_\+\+NS\+::equivalent\texorpdfstring{$<$}{<} Compare, Obj \texorpdfstring{$>$}{>} Struct Template Reference} \label{struct_k_b_l_i_b___n_s_1_1equivalent}\index{KBLIB\_NS::equivalent$<$ Compare, Obj $>$@{KBLIB\_NS::equivalent$<$ Compare, Obj $>$}} A function object implementing the equivalence relationship over a comparison predicate. {\ttfamily \#include $<$kblib/algorithm.\+h$>$} \doxysubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item constexpr auto \mbox{\hyperlink{struct_k_b_l_i_b___n_s_1_1equivalent_ac556dc1c210a605895f35cc635f81ce8}{operator()}} (const Obj \&\mbox{\hyperlink{namespace_k_b_l_i_b___n_s_a228a6004801f23e3746cd67df6bcbeb6}{a}}, const Obj \&b, Compare comp) const noexcept(noexcept(\mbox{\hyperlink{namespace_k_b_l_i_b___n_s_a119ddac7711a98a66c29e9cb8b62f30a}{equals}}(\mbox{\hyperlink{namespace_k_b_l_i_b___n_s_a228a6004801f23e3746cd67df6bcbeb6}{a}}, b, comp))) -\/$>$ bool \end{DoxyCompactItemize} \doxysubsection{Detailed Description} \subsubsection*{template$<$typename Compare = void, typename Obj = void$>$\newline struct KBLIB\+\_\+\+NS\+::equivalent$<$ Compare, Obj $>$} A function object implementing the equivalence relationship over a comparison predicate. \begin{DoxyTemplParams}{Template Parameters} {\em Compare} & The predicate to compare over. If void, use the \texorpdfstring{$<$}{<} operator. (Equivalent to defaulting to std\+::less.) \\ \hline {\em Obj} & The type of objects to compare. If void, the operator() is a template. \\ \hline \end{DoxyTemplParams} Definition at line \mbox{\hyperlink{algorithm_8h_source_l00123}{123}} of file \mbox{\hyperlink{algorithm_8h_source}{algorithm.\+h}}. \doxysubsection{Member Function Documentation} \mbox{\Hypertarget{struct_k_b_l_i_b___n_s_1_1equivalent_ac556dc1c210a605895f35cc635f81ce8}\label{struct_k_b_l_i_b___n_s_1_1equivalent_ac556dc1c210a605895f35cc635f81ce8}} \index{KBLIB\_NS::equivalent$<$ Compare, Obj $>$@{KBLIB\_NS::equivalent$<$ Compare, Obj $>$}!operator()@{operator()}} \index{operator()@{operator()}!KBLIB\_NS::equivalent$<$ Compare, Obj $>$@{KBLIB\_NS::equivalent$<$ Compare, Obj $>$}} \doxysubsubsection{\texorpdfstring{operator()()}{operator()()}} {\footnotesize\ttfamily template$<$typename Compare = void, typename Obj = void$>$ \\ constexpr auto \mbox{\hyperlink{struct_k_b_l_i_b___n_s_1_1equivalent}{KBLIB\+\_\+\+NS\+::equivalent}}$<$ Compare, Obj $>$\+::operator() (\begin{DoxyParamCaption}\item[{const Obj \&}]{a, }\item[{const Obj \&}]{b, }\item[{Compare}]{comp }\end{DoxyParamCaption}) const -\/$>$ bool \hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [constexpr]}, {\ttfamily [noexcept]}} Definition at line \mbox{\hyperlink{algorithm_8h_source_l00124}{124}} of file \mbox{\hyperlink{algorithm_8h_source}{algorithm.\+h}}. The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize} \item kblib/\mbox{\hyperlink{algorithm_8h}{algorithm.\+h}}\end{DoxyCompactItemize}