Skip to main content

detail

detail

Classes

Name
struct detail::unwrap_optional
Unwrap std::optional to T; identity for non-optional types.
struct detail::unwrap_optional< std::optional< T > >
struct detail::is_std_vector
Detect std::vector at compile time.
struct detail::is_std_vector< std::vector< T, A > >
struct detail::vector_element
Extract the element type from std::vector.
struct detail::vector_element< std::vector< T, A > >
struct detail::is_tagged_union
Detect rfl::TaggedUnion<_discriminator, Ts…> via SFINAE.
struct detail::is_tagged_union< T, std::void_t< typename T::VariantType, decltype(T::discrimininator_)> >
struct detail::first_tagged_union_alt
struct detail::first_tagged_union_alt< rfl::TaggedUnion< Disc, First, Rest… > >

Types

Name
template <typename T >
using typename unwrap_optional< T >::type
unwrap_optional_t
template <typename T >
using typename vector_element< T >::type
vector_element_t

Functions

Name
template <typename Params >
Params
getDefaultInstance()
template <typename TaggedUnionType ,typename AltType >
VariantAlternative
makeVariantAlternative(std::string_view disc_str)
Process a single alternative type in a TaggedUnion.
template <rfl::internal::StringLiteral _disc,typename… Ts>
void
processTaggedUnion(rfl::TaggedUnion< _disc, Ts… > const * , ParameterFieldDescriptor & desc)
Process all alternatives in a TaggedUnion and populate the field descriptor.

Attributes

Name
bool is_std_vector_v
bool is_tagged_union_v

Types Documentation

using unwrap_optional_t

template <typename T >
using detail::unwrap_optional_t =  typename unwrap_optional<T>::type;

using vector_element_t

template <typename T >
using detail::vector_element_t =  typename vector_element<T>::type;

Functions Documentation

function getDefaultInstance

template <typename Params >
Params getDefaultInstance()

Return a default instance of Params for schema extraction. TaggedUnion is not default-constructible; use first alternative.

function makeVariantAlternative

template <typename TaggedUnionType ,
typename AltType >
VariantAlternative makeVariantAlternative(
    std::string_view disc_str
)

Process a single alternative type in a TaggedUnion.

Extracts the tag name by serializing a default-constructed TaggedUnion holding the alternative, and recursively extracts the sub-schema for that alternative.

function processTaggedUnion

template <rfl::internal::StringLiteral _disc,
typename... Ts>
void processTaggedUnion(
    rfl::TaggedUnion< _disc, Ts... > const * ,
    ParameterFieldDescriptor & desc
)

Process all alternatives in a TaggedUnion and populate the field descriptor.

Attributes Documentation

variable is_std_vector_v

bool is_std_vector_v = is_std_vector<T>::value;

variable is_tagged_union_v

bool is_tagged_union_v = is_tagged_union<T>::value;

Updated on 2026-11-13 at 20:25:42 +0000