25#ifndef __ANY_PTR_HPP__
26#define __ANY_PTR_HPP__
87 deleter_ = [](
void* p) {
delete static_cast<T*
>(p); };
98 return *
static_cast<T*
>(
ptr_);
Handle deallocation of a poiniter to an object of any type.
void * ptr_
Untyped pointer to a stored object.
any_ptr(T *ptr__)
Constructor.
std::function< void(void *)> deleter_
Deleter for the stored object.
T & get() const
Cast pointer to a given type and return a reference.
Namespace of the SIRIUS library.