#include <alpaqa/params/structs.hpp>
Like std::any, but storing just the pointer, without any dynamic allocation.
Definition at line 17 of file structs.hpp.
Collaboration diagram for any_ptr:Public Member Functions | |
| any_ptr ()=default | |
| template<class T > | |
| any_ptr (T *ptr) | |
| template<class T > | |
| T * | cast () const |
Private Attributes | |
| void * | ptr = nullptr |
| const std::type_info * | ptr_type = nullptr |
| bool | is_const = true |
|
default |
Definition at line 26 of file structs.hpp.
Definition at line 37 of file structs.hpp.
Definition at line 38 of file structs.hpp.
Definition at line 39 of file structs.hpp.