32template <
typename R,
typename... Ts >
33 requires( std::convertible_to< Ts&, R > && ... )
36 return r.
visit( [&](
auto& item ) -> R {
37 return static_cast< R
>( item );
43template <
typename R,
typename Del,
typename... Ts >
44 requires( std::convertible_to< Ts&, R > && ... )
47 return r.
visit( [&](
auto& item ) -> R {
48 return static_cast< R
>( item );
A non-nullable pointer to one of the types in Ts...
Definition: vref.h:40
constexpr decltype(auto) visit(Fs &&... fs) const
Calls the appropriate function from the list fs..., based on the type of the current target.
Definition: vref.h:113
MIT License.
Definition: dispatch.h:32
R vcast(vari::_vref< Ts... > const &r)
Applies static cast to R to item currently referenced by vref
Definition: vcast.h:34
A non-nullable owning pointer to one of the types in Ts...
Definition: uvref.h:43
constexpr decltype(auto) visit(Fs &&... f) const
Calls the appropriate function from the list fs..., based on the type of the current target.
Definition: uvref.h:196