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

CRTP class template from which a derived class can inherit common methods dealing with hashing instances by metaclass. More...

#include <mixinhash.h>

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

Friends

size_t qHash (const Derived &value, size_t seed=0)
 qHash overload, needed for storing value in a QSet.

Detailed Description

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

CRTP class template from which a derived class can inherit common methods dealing with hashing instances by metaclass.

Template Parameters
DerivedMust be registered with SWIFT_DECLARE_TUPLE_CONVERSION.

Definition at line 47 of file mixinhash.h.

◆ qHash

template<class Derived>
size_t qHash ( const Derived & value,
size_t seed = 0 )
friend

qHash overload, needed for storing value in a QSet.

Definition at line 51 of file mixinhash.h.


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