Porytiles
|
A smart pointer that represents a non-owning view of a resource. More...
#include <view_ptr.hpp>
Public Member Functions | |
constexpr | view_ptr () noexcept |
constexpr | view_ptr (std::nullptr_t) noexcept |
view_ptr (T *p) noexcept | |
view_ptr (const view_ptr &other) noexcept=default | |
view_ptr & | operator= (const view_ptr &other) noexcept=default |
view_ptr (view_ptr &&other) noexcept | |
view_ptr & | operator= (view_ptr &&other) noexcept |
T * | get () const noexcept |
T & | operator* () const |
T * | operator-> () const noexcept |
operator bool () const noexcept | |
T * | release () noexcept |
void | reset (T *p=nullptr) noexcept |
void | swap (view_ptr &other) noexcept |
A smart pointer that represents a non-owning view of a resource.
The view_ptr allows for reading and writing and is semantically equivalent to a raw pointer. The purpose of view_ptr is to explicitly signal that the pointed-to resource is not owned by the owner of the pointer.
Definition at line 16 of file view_ptr.hpp.
|
inlineconstexprnoexcept |
Definition at line 18 of file view_ptr.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 20 of file view_ptr.hpp.
|
inlineexplicitnoexcept |
Definition at line 22 of file view_ptr.hpp.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 28 of file view_ptr.hpp.
|
inlinenoexcept |
Definition at line 35 of file view_ptr.hpp.
|
inlineexplicitnoexcept |
Definition at line 49 of file view_ptr.hpp.
|
inline |
Definition at line 39 of file view_ptr.hpp.
|
inlinenoexcept |
Definition at line 44 of file view_ptr.hpp.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 30 of file view_ptr.hpp.
|
inlinenoexcept |
Definition at line 53 of file view_ptr.hpp.
|
inlinenoexcept |
Definition at line 57 of file view_ptr.hpp.
|
inlinenoexcept |
Definition at line 61 of file view_ptr.hpp.