An intrusive, reference counting smart pointer impelementation.
More...
#include <intrusive_ptr.hpp>
Inherits comparable< intrusive_ptr< T > >, comparable< intrusive_ptr< T >, const T * >, and comparable< intrusive_ptr< T >, std::nullptr_t >.
|
using | pointer = T * |
|
using | const_pointer = const T * |
|
using | element_type = T |
|
using | reference = T & |
|
using | const_reference = const T & |
|
|
| intrusive_ptr (pointer raw_ptr, bool add_ref=true) |
|
| intrusive_ptr (intrusive_ptr &&other) |
|
| intrusive_ptr (const intrusive_ptr &other) |
|
template<class Y > |
| intrusive_ptr (intrusive_ptr< Y > other) |
|
void | swap (intrusive_ptr &other) |
|
pointer | release () |
| Returns the raw pointer without modifying reference count and sets this to nullptr . More...
|
|
void | reset (pointer new_value=nullptr, bool add_ref=true) |
|
template<class... Ts> |
void | emplace (Ts &&...xs) |
|
intrusive_ptr & | operator= (pointer ptr) |
|
intrusive_ptr & | operator= (intrusive_ptr &&other) |
|
intrusive_ptr & | operator= (const intrusive_ptr &other) |
|
template<class Y > |
intrusive_ptr & | operator= (intrusive_ptr< Y > other) |
|
pointer | get () const |
|
pointer | operator-> () const |
|
reference | operator* () const |
|
bool | operator! () const |
|
| operator bool () const |
|
ptrdiff_t | compare (const_pointer ptr) const |
|
ptrdiff_t | compare (const intrusive_ptr &other) const |
|
ptrdiff_t | compare (std::nullptr_t) const |
|
template<class C > |
intrusive_ptr< C > | downcast () const |
|
template<class C > |
intrusive_ptr< C > | upcast () const |
|
template<class T>
class caf::intrusive_ptr< T >
An intrusive, reference counting smart pointer impelementation.
Returns the raw pointer without modifying reference count and sets this to nullptr
.
template<class X , typename Y >
template<class X , typename Y >
The documentation for this class was generated from the following files:
- libcaf_core/caf/fwd.hpp
- libcaf_core/caf/intrusive_ptr.hpp