swift
Loading...
Searching...
No Matches
swift::misc::mixin::CompareByMetaClass< Derived > Class Template Reference

CRTP class template from which a derived class can inherit non-member compare() implemented by metaclass. More...

#include <mixincompare.h>

Inheritance diagram for swift::misc::mixin::CompareByMetaClass< Derived >:
[legend]

Friends

int compare (const Derived &a, const Derived &b)
 Return negative, zero, or positive if a is less than, equal to, or greater than b.

Detailed Description

template<class Derived>
class swift::misc::mixin::CompareByMetaClass< Derived >

CRTP class template from which a derived class can inherit non-member compare() implemented by metaclass.

Definition at line 221 of file mixincompare.h.

◆ compare

template<class Derived>
int compare ( const Derived & a,
const Derived & b )
friend

Return negative, zero, or positive if a is less than, equal to, or greater than b.

Definition at line 225 of file mixincompare.h.


The documentation for this class was generated from the following file: