Represents a reflected field. More...
#include <refl.hpp>
Public Types | |
typedef member::value_type | value_type |
Type value type of the member. More... | |
Public Member Functions | |
template<typename... Args> | |
constexpr auto | operator() (Args &&... args) const noexcept -> decltype(invoker::invoke(std::forward< Args >(args)...)) |
A synonym for get(). More... | |
Static Public Member Functions | |
template<decltype(nullptr) = nullptr> | |
static constexpr decltype(auto) | get () noexcept |
Returns the value of the field. More... | |
template<typename U > | |
static constexpr decltype(auto) | get (U &&target) noexcept |
Returns the value of the field. More... | |
Static Public Attributes | |
static constexpr bool | is_static { !std::is_member_object_pointer_v<decltype(member::pointer)> } |
Whether the field is static or not. More... | |
static constexpr bool | is_writable { !std::is_const_v<value_type> } |
Whether the field is const or not. More... | |
static constexpr auto | pointer { member::pointer } |
A member pointer to the reflected field of the appropriate type. More... | |
Represents a reflected field.
typedef member::value_type refl::descriptor::field_descriptor< T, N >::value_type |
Type value type of the member.
|
inlinestaticconstexprnoexcept |
Returns the value of the field.
(for static fields).
|
inlinestaticconstexprnoexcept |
Returns the value of the field.
(for instance fields).
|
inlineconstexprnoexcept |
A synonym for get().
|
staticconstexpr |
|
staticconstexpr |
Whether the field is const or not.
|
staticconstexpr |
A member pointer to the reflected field of the appropriate type.
When the member is a function, the return value might be nullptr if the type of the function pointer cannot be resolved.