SPH
Classes | Namespaces | Functions
ClonePtr.h File Reference

Smart pointer performing cloning of stored resource rather than copying pointer. More...

#include "objects/wrappers/AutoPtr.h"

Go to the source code of this file.

Classes

struct  Detail::Cloner
 
class  Detail::TypedCloner< T >
 
class  ClonePtr< T >
 

Namespaces

 Detail
 

Functions

template<typename T >
INLINE bool operator== (const ClonePtr< T > &ptr, const std::nullptr_t &)
 
template<typename T >
INLINE bool operator== (const std::nullptr_t &, const ClonePtr< T > &ptr)
 
template<typename T >
INLINE bool operator!= (const ClonePtr< T > &ptr, const std::nullptr_t &)
 
template<typename T >
INLINE bool operator!= (const std::nullptr_t &, const ClonePtr< T > &ptr)
 
template<typename T , typename... TArgs>
INLINE ClonePtr< T > makeClone (TArgs &&... args)
 

Detailed Description

Smart pointer performing cloning of stored resource rather than copying pointer.

Author
Pavel Sevecek
Date
2016-2021

Definition in file ClonePtr.h.

Function Documentation

◆ makeClone()

template<typename T , typename... TArgs>
INLINE ClonePtr<T> makeClone ( TArgs &&...  args)

Definition at line 167 of file ClonePtr.h.

◆ operator!=() [1/2]

template<typename T >
INLINE bool operator!= ( const ClonePtr< T > &  ptr,
const std::nullptr_t &   
)

Definition at line 157 of file ClonePtr.h.

◆ operator!=() [2/2]

template<typename T >
INLINE bool operator!= ( const std::nullptr_t &  ,
const ClonePtr< T > &  ptr 
)

Definition at line 162 of file ClonePtr.h.

◆ operator==() [1/2]

template<typename T >
INLINE bool operator== ( const ClonePtr< T > &  ptr,
const std::nullptr_t &   
)

Definition at line 147 of file ClonePtr.h.

◆ operator==() [2/2]

template<typename T >
INLINE bool operator== ( const std::nullptr_t &  ,
const ClonePtr< T > &  ptr 
)

Definition at line 152 of file ClonePtr.h.