Krita Source Code Documentation
Loading...
Searching...
No Matches
std::hash< KisWeakSharedPtr< T > > Struct Template Reference

#include <kis_types.h>

Public Member Functions

size_t operator() (const KisWeakSharedPtr< T > &ptr) const
 

Detailed Description

template<class T>
struct std::hash< KisWeakSharedPtr< T > >

Definition at line 43 of file kis_types.h.

Member Function Documentation

◆ operator()()

template<class T >
size_t std::hash< KisWeakSharedPtr< T > >::operator() ( const KisWeakSharedPtr< T > & ptr) const
inline

Definition at line 45 of file kis_types.h.

45 {
46 return hash<const T*>()(ptr.data());
47 }

References KisWeakSharedPtr< T >::data().


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