Pioneer
Loading...
Searching...
No Matches
Classes | Macros
SmartPtr.h File Reference
#include <cassert>
#include <cstddef>
#include <cstdlib>
Include dependency graph for SmartPtr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SmartPtrBase< Derived, T >
 
struct  FreeDeleter
 

Macros

#define WARN_UNUSED_RESULT(ret, decl)   ret decl
 
#define DEF_SMARTPTR_COMPARISON(op)
 

Macro Definition Documentation

◆ DEF_SMARTPTR_COMPARISON

#define DEF_SMARTPTR_COMPARISON (   op)
Value:
template <typename D1, typename T1, typename D2, typename T2> \
inline bool operator op(const SmartPtrBase<D1, T1> &a, const SmartPtrBase<D2, T2> &b) \
{ \
return (a.Get() op b.Get()); \
} \
template <typename D, typename T1, typename T2> \
inline bool operator op(const SmartPtrBase<D, T1> &a, const T2 *b) \
{ \
return (a.Get() op b); \
} \
template <typename D, typename T1, typename T2> \
inline bool operator op(const T1 *a, const SmartPtrBase<D, T2> &b) \
{ \
return (a op b.Get()); \
}
Definition SmartPtr.h:18

◆ WARN_UNUSED_RESULT

#define WARN_UNUSED_RESULT (   ret,
  decl 
)    ret decl