#include <guanaqo/any-ptr.hpp>
Like std::any, but storing just the pointer, without any dynamic allocation.
Definition at line 16 of file any-ptr.hpp.
◆ any_ptr() [1/2]
| guanaqo::any_ptr::any_ptr |
( |
| ) |
|
|
default |
◆ any_ptr() [2/2]
template<class T>
| guanaqo::any_ptr::any_ptr |
( |
T * | ptr | ) |
|
|
inlinenoexcept |
◆ cast()
template<class T>
| T * guanaqo::any_ptr::cast |
( |
| ) |
const |
|
inline |
◆ has_value()
| bool guanaqo::any_ptr::has_value |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_immutable()
| bool guanaqo::any_ptr::is_immutable |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ type()
| const std::type_info & guanaqo::any_ptr::type |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ ptr
| void* guanaqo::any_ptr::ptr = nullptr |
|
private |
◆ ptr_type
| const std::type_info* guanaqo::any_ptr::ptr_type = &typeid(void) |
|
private |
◆ is_const
| bool guanaqo::any_ptr::is_const = true |
|
private |
The documentation for this class was generated from the following file: