Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Stroika::Foundation::Common::EqualsComparerAdapter< ARG_T, BASE_COMPARER > Struct Template Reference

Use this to wrap any basic comparer, and produce an Equals comparer. More...

#include <Compare.h>

Inheritance diagram for Stroika::Foundation::Common::EqualsComparerAdapter< ARG_T, BASE_COMPARER >:
Stroika::Foundation::Common::ComparisonRelationDeclarationBase< ComparisonRelationType::eEquals >

Detailed Description

template<typename ARG_T, IComparer< ARG_T > BASE_COMPARER>
struct Stroika::Foundation::Common::EqualsComparerAdapter< ARG_T, BASE_COMPARER >

Use this to wrap any basic comparer, and produce an Equals comparer.

This is done by querying the 'type' of the baseComparer with

See also
ExtractComparisonTraits_v, and mapping the logic accordingly.
Note
attempted deduction guide, but so far doesn't seem to work well, possibly because FunctionTraits may have trouble sometimes deducing argument type (like if function overloaded).

Definition at line 356 of file Compare.h.


The documentation for this struct was generated from the following files: