Potato Engine
Hobby Game Engine Project
Public Types | Public Member Functions | Friends | List of all members
up::rc< T > Class Template Reference

Public Types

using pointer = T *
 
using reference = T &
 

Public Member Functions

 rc (pointer ptr)
 
 rc (rc const &rhs)
 
 rc (rc &&rhs)
 
template<typename U >
 rc (rc< U > const &rhs)
 
template<typename U >
 rc (rc< U > &&rhs)
 
 rc (std::nullptr_t)
 
rcoperator= (rc const &rhs)
 
rcoperator= (rc &&rhs)
 
template<typename U >
rcoperator= (rc< U > const &rhs)
 
template<typename U >
rcoperator= (rc< U > &&rhs)
 
rcoperator= (std::nullptr_t)
 
 operator bool () const
 
bool empty () const
 
void reset (pointer ptr=pointer{})
 
pointer release ()
 
pointer get () const
 
pointer operator-> () const
 
reference operator* () const
 
template<typename U >
auto operator= (rc< U > const &rhs) -> rc &
 
template<typename U >
auto operator= (rc< U > &&rhs) -> rc &
 

Friends

bool operator== (rc const &lhs, rc const &rhs)
 
bool operator!= (rc const &lhs, rc const &rhs)
 
bool operator== (rc const &lhs, std::nullptr_t)
 
bool operator!= (rc const &lhs, std::nullptr_t)
 
bool operator== (std::nullptr_t, rc const &rhs)
 
bool operator!= (std::nullptr_t, rc const &rhs)
 

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