Krita Source Code Documentation
Loading...
Searching...
No Matches
kismpl::detail::mem_compare< Op, Class, MemType, PtrType > Struct Template Reference

#include <KisMpl.h>

Public Member Functions

template<typename Object >
bool operator() (const MemType &lhs, Object &&rhs) const
 
template<typename Object >
bool operator() (Object &&lhs, const MemType &rhs) const
 
template<typename Object >
bool operator() (Object &&lhs, Object &&rhs) const
 

Public Attributes

PtrType ptr
 

Detailed Description

template<typename Op, typename Class, typename MemType, typename PtrType>
struct kismpl::detail::mem_compare< Op, Class, MemType, PtrType >

Definition at line 163 of file KisMpl.h.

Member Function Documentation

◆ operator()() [1/3]

template<typename Op , typename Class , typename MemType , typename PtrType >
template<typename Object >
bool kismpl::detail::mem_compare< Op, Class, MemType, PtrType >::operator() ( const MemType & lhs,
Object && rhs ) const
inline

Definition at line 180 of file KisMpl.h.

180 {
181 Op op;
182 return op(lhs,
183 std::invoke(ptr, std::forward<Object>(rhs)));
184 }

References kismpl::detail::mem_compare< Op, Class, MemType, PtrType >::ptr.

◆ operator()() [2/3]

template<typename Op , typename Class , typename MemType , typename PtrType >
template<typename Object >
bool kismpl::detail::mem_compare< Op, Class, MemType, PtrType >::operator() ( Object && lhs,
const MemType & rhs ) const
inline

Definition at line 173 of file KisMpl.h.

173 {
174 Op op;
175 return op(std::invoke(ptr, std::forward<Object>(lhs)),
176 rhs);
177 }

References kismpl::detail::mem_compare< Op, Class, MemType, PtrType >::ptr.

◆ operator()() [3/3]

template<typename Op , typename Class , typename MemType , typename PtrType >
template<typename Object >
bool kismpl::detail::mem_compare< Op, Class, MemType, PtrType >::operator() ( Object && lhs,
Object && rhs ) const
inline

Definition at line 166 of file KisMpl.h.

166 {
167 Op op;
168 return op(std::invoke(ptr, std::forward<Object>(lhs)),
169 std::invoke(ptr, std::forward<Object>(rhs)));
170 }

References kismpl::detail::mem_compare< Op, Class, MemType, PtrType >::ptr.

Member Data Documentation

◆ ptr

template<typename Op , typename Class , typename MemType , typename PtrType >
PtrType kismpl::detail::mem_compare< Op, Class, MemType, PtrType >::ptr

Definition at line 186 of file KisMpl.h.


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