|
Cuda battery library
|
#include <shared_ptr.hpp>
Public Types | |
| using | element_type = T |
| using | pointer = T * |
| using | allocator_type = Allocator |
| using | this_type = shared_ptr< element_type, allocator_type > |
Public Member Functions | |
| CUDA | shared_ptr (const allocator_type &allocator=allocator_type()) |
| CUDA | shared_ptr (std::nullptr_t, const allocator_type &allocator=allocator_type()) |
| template<class Y > | |
| CUDA NI | shared_ptr (Y *ptr, const allocator_type &allocator=allocator_type()) |
| CUDA | shared_ptr (this_type &&from) |
| template<class Y > | |
| CUDA | shared_ptr (shared_ptr< Y, Allocator > &&from) |
| CUDA | shared_ptr (const this_type &from) |
| template<class Y > | |
| CUDA | shared_ptr (const shared_ptr< Y, Allocator > &from) |
| CUDA NI | ~shared_ptr () |
| CUDA void | swap (shared_ptr &other) |
| CUDA shared_ptr & | operator= (const shared_ptr &r) |
| CUDA shared_ptr & | operator= (shared_ptr &&r) |
| template<class Y > | |
| CUDA shared_ptr & | operator= (const shared_ptr< Y, Allocator > &r) |
| template<class Y > | |
| CUDA shared_ptr & | operator= (shared_ptr< Y, Allocator > &&r) |
| CUDA shared_ptr & | operator= (std::nullptr_t) |
| CUDA void | reset () |
| template<class Y > | |
| CUDA void | reset (Y *ptr) |
| CUDA pointer | get () const |
| CUDA T & | operator* () const |
| CUDA pointer | operator-> () const |
| CUDA int | use_count () const |
| CUDA allocator_type | get_allocator () const |
| CUDA | operator bool () const |
Friends | |
| template<class Y , class Alloc > | |
| class | shared_ptr |
Similar to std::shared_ptr but with some (technical) differences:
| using battery::shared_ptr< T, Allocator >::element_type = T |
| using battery::shared_ptr< T, Allocator >::pointer = T* |
| using battery::shared_ptr< T, Allocator >::allocator_type = Allocator |
| using battery::shared_ptr< T, Allocator >::this_type = shared_ptr<element_type, allocator_type> |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
friend |