\hypertarget{structkblib_1_1equivalent}{}\doxysection{kblib\+::equivalent\texorpdfstring{$<$}{<} Compare, Obj \texorpdfstring{$>$}{>} Struct Template Reference} \label{structkblib_1_1equivalent}\index{kblib::equivalent$<$ Compare, Obj $>$@{kblib::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{structkblib_1_1equivalent_a7f98fdc8ae52934bf9fb4e38ee5f5c51}{operator()}} (const Obj \&\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}}, const Obj \&b, Compare comp) const noexcept(noexcept(\mbox{\hyperlink{namespacekblib_a69f8d0752435e17b0c99ece2a5b599bb}{equals}}(\mbox{\hyperlink{namespacekblib_a22831dce77d5f35c13930b5e30a59f07}{a}}, b, comp))) -\/$>$ bool \end{DoxyCompactItemize} \doxysubsection{Detailed Description} \subsubsection*{template$<$typename Compare = void, typename Obj = void$>$\newline struct kblib\+::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{structkblib_1_1equivalent_a7f98fdc8ae52934bf9fb4e38ee5f5c51}\label{structkblib_1_1equivalent_a7f98fdc8ae52934bf9fb4e38ee5f5c51}} \index{kblib::equivalent$<$ Compare, Obj $>$@{kblib::equivalent$<$ Compare, Obj $>$}!operator()@{operator()}} \index{operator()@{operator()}!kblib::equivalent$<$ Compare, Obj $>$@{kblib::equivalent$<$ Compare, Obj $>$}} \doxysubsubsection{\texorpdfstring{operator()()}{operator()()}} {\footnotesize\ttfamily template$<$typename Compare = void, typename Obj = void$>$ \\ constexpr auto \mbox{\hyperlink{structkblib_1_1equivalent}{kblib\+::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}