|
| handle () noexcept |
| Default constructor.
|
|
| handle (any &any) noexcept |
| Constructs a meta handle from a meta any object. More...
|
|
template<typename Type , typename = std::enable_if_t<!std::is_same_v<std::remove_cv_t<std::remove_reference_t<Type>>, handle>>> |
| handle (Type &obj) noexcept |
| Constructs a meta handle from a given instance. More...
|
|
meta::type | type () const noexcept |
| Returns the meta type of the underlying object. More...
|
|
const void * | data () const noexcept |
| Returns an opaque pointer to the contained instance. More...
|
|
void * | data () noexcept |
| Returns an opaque pointer to the contained instance. More...
|
|
| operator bool () const noexcept |
| Returns false if a handle is empty, true otherwise. More...
|
|
Meta handle object.
A meta handle is an opaque pointer to an instance of any type.
A handle doesn't perform copies and isn't responsible for the contained object. It doesn't prolong the lifetime of the pointed instance. Users are responsible for ensuring that the target object remains alive for the entire interval of use of the handle.
Definition at line 675 of file meta.hpp.