|
opynsim
Unofficial C++ Documentation
|
#include <lifetimed_ptr.h>
Public Member Functions | |
| constexpr | LifetimedPtr ()=default |
| constexpr | LifetimedPtr (std::nullptr_t) |
| LifetimedPtr (LifetimeWatcher lifetime_watcher, T *ptr) | |
| template<WatchableLifetime Lifetime> | |
| LifetimedPtr (const Lifetime &lifetime, T *ptr) | |
| LifetimedPtr (const LifetimedPtr &)=default | |
| template<std::derived_from< T > U> | |
| LifetimedPtr (const LifetimedPtr< U > &other) | |
| LifetimedPtr (LifetimedPtr &&) noexcept=default | |
| template<std::derived_from< T > U> | |
| LifetimedPtr (LifetimedPtr< U > &&other) | |
| LifetimedPtr & | operator= (const LifetimedPtr &)=default |
| LifetimedPtr & | operator= (LifetimedPtr &&) noexcept=default |
| ~LifetimedPtr () noexcept=default | |
| bool | expired () const noexcept |
| void | reset () |
| T * | get () const |
| T * | get_if_not_expired () const |
| T & | operator* () const |
| T * | operator-> () const |
| operator bool () const noexcept | |
| template<typename U > | |
| LifetimedPtr< U > | dynamic_downcast () |
Friends | |
| template<typename > | |
| class | LifetimedPtr |
| template<typename T1 , typename T2 > | |
| bool | operator== (const LifetimedPtr< T1 > &, const LifetimedPtr< T2 > &) |
| template<typename T1 > | |
| bool | operator== (const LifetimedPtr< T1 > &, std::nullptr_t) |
|
constexprdefault |
|
inlineconstexpr |
|
inline |
|
inline |
|
default |
|
inline |
|
defaultnoexcept |
|
inline |
|
defaultnoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
default |
|
defaultnoexcept |
|
inline |
|
friend |
|
friend |