Documentation of CSL
Macros
std_shared_ptr_inheritance.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INHERIT_SHARED_PTR_CONSTRUCTOR(Class, type)
 
#define DEFINE_SHARED_PTR_OPERATOR(Class)
 

Detailed Description

Author
Grégoire Uhlrich
Version
1.3

Macro Definition Documentation

◆ DEFINE_SHARED_PTR_OPERATOR

#define DEFINE_SHARED_PTR_OPERATOR (   Class)
Value:
inline bool operator==( \
Class const &expr, \
std::nullptr_t \
) \
{ \
return expr.get() == nullptr; \
} \
inline bool operator==( \
std::nullptr_t, \
Class const &expr \
) \
{ \
return expr.get() == nullptr; \
} \
inline bool operator!=( \
Class const &expr, \
std::nullptr_t \
) \
{ \
return expr.get() != nullptr; \
} \
inline bool operator!=( \
std::nullptr_t, \
Class const &expr \
) \
{ \
return expr.get() != nullptr; \
}
bool operator==(const Expr &a, const Expr &b)
see Abstract::operator==()
Definition: abstract.cpp:1398
bool operator!=(const Expr &a, const Expr &b)
see Abstract::operator!=()
Definition: abstract.cpp:1404