![]() |
Spicy
|
#include <type-info.h>
Public Types | |
using | Accessor = const void *(*)(const Value &v) |
Public Member Functions | |
DereferenceableType (const TypeInfo *vtype, Accessor accessor) | |
Value | value (const Value &v) const |
const TypeInfo * | valueType () const |
Base class for auxiliary type information pertaining to types that contain a single element of another type.
using hilti::rt::type_info::detail::DereferenceableType::Accessor = const void* (*)(const Value& v) |
Type of a function that, given the outer value, returns a pointer to the contained element.
|
inline |
Constructor.
vtype | type of the contained elements |
accessor | function retrieving a pointer to the contained element |
Returns the contained value.
|
inline |
Returns the type of elements, as passed into the constructor.