![]() |
MOS Source Code
|
#include <shared_ptr.hpp>
Public Types | |
| using | element_type = std::remove_extent_t<T> |
Public Member Functions | |
| constexpr | shared_ptr () noexcept |
| constexpr | shared_ptr (std::nullptr_t) noexcept |
| template<typename Y> | |
| shared_ptr (Y *ptr) | |
| shared_ptr (__shared_ptr_core< T > *cb) | |
| shared_ptr (const shared_ptr &r) noexcept | |
| template<typename Y> | |
| shared_ptr (shared_ptr< Y > &other) | |
| shared_ptr (shared_ptr &&r) noexcept | |
| template<typename Y> | |
| shared_ptr (shared_ptr< Y > &&other) | |
| shared_ptr & | operator= (const shared_ptr &r) noexcept |
| template<class Y> | |
| shared_ptr & | operator= (const shared_ptr< Y > &r) noexcept |
| shared_ptr & | operator= (shared_ptr &&r) noexcept |
| template<class Y> | |
| shared_ptr & | operator= (shared_ptr< Y > &&r) noexcept |
| ~shared_ptr () | |
| long | use_count () const |
| void | reset () |
| T * | release () |
| element_type * | get () const |
| element_type & | operator* () const |
| element_type * | operator-> () const |
| operator bool () const | |
Private Attributes | |
| __shared_ptr_core< T > * | _c |
Friends | |
| class | weak_ptr< T > |
| void | swap (shared_ptr &lhs, shared_ptr &rhs) |
| bool | operator== (const shared_ptr &lhs, const shared_ptr &rhs) |
| bool | operator== (const shared_ptr &lhs, std::nullptr_t) |
Definition at line 139 of file shared_ptr.hpp.
| using element_type = std::remove_extent_t<T> |
Definition at line 144 of file shared_ptr.hpp.
|
inlineconstexprnoexcept |
Definition at line 147 of file shared_ptr.hpp.
Referenced by operator=(), operator=(), operator=(), operator=(), operator==, operator==, shared_ptr(), shared_ptr(), shared_ptr(), shared_ptr(), and swap.
|
inlineconstexprnoexcept |
Definition at line 148 of file shared_ptr.hpp.
|
inlineexplicit |
Definition at line 153 of file shared_ptr.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Definition at line 261 of file shared_ptr.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Definition at line 272 of file shared_ptr.hpp.
|
inline |
Definition at line 279 of file shared_ptr.hpp.
|
inline |
Definition at line 289 of file shared_ptr.hpp.
|
inline |
Definition at line 302 of file shared_ptr.hpp.
|
inline |
Definition at line 309 of file shared_ptr.hpp.
|
inline |
Definition at line 314 of file shared_ptr.hpp.
|
inline |
Definition at line 337 of file shared_ptr.hpp.
|
friend |
Definition at line 135 of file shared_ptr.hpp.
|
friend |
Definition at line 322 of file shared_ptr.hpp.
|
friend |
Definition at line 327 of file shared_ptr.hpp.
|
friend |
Definition at line 332 of file shared_ptr.hpp.
|
private |
Definition at line 343 of file shared_ptr.hpp.
Referenced by get(), operator bool(), operator*(), operator->(), operator=(), operator=(), operator=(), operator=(), operator==, operator==, release(), reset(), shared_ptr(), shared_ptr(), shared_ptr(), shared_ptr(), shared_ptr(), shared_ptr(), swap, use_count(), and ~shared_ptr().