Iros
 
Loading...
Searching...
No Matches
di::vocab::detail::AsFallibleFunction Struct Reference

#include <di/vocab/expected/as_fallible.h>

Inheritance diagram for di::vocab::detail::AsFallibleFunction:
[legend]

Public Member Functions

template<concepts::Expected T>
requires (concepts::ConstructibleFrom<meta::Decay<T>, T>)
constexpr auto operator() (T &&value) const -> meta::Decay< T >
 
template<typename T, typename R = Expected<meta::UnwrapRefRValue<T>, void>>
requires (!concepts::Expected<T> && concepts::ConstructibleFrom<R, T>)
constexpr auto operator() (T &&value) const -> R
 

Member Function Documentation

◆ operator()() [1/2]

template<concepts::Expected T>
requires (concepts::ConstructibleFrom<meta::Decay<T>, T>)
auto di::vocab::detail::AsFallibleFunction::operator() ( T && value) const -> meta::Decay<T>
inlineconstexpr

◆ operator()() [2/2]

template<typename T, typename R = Expected<meta::UnwrapRefRValue<T>, void>>
requires (!concepts::Expected<T> && concepts::ConstructibleFrom<R, T>)
auto di::vocab::detail::AsFallibleFunction::operator() ( T && value) const -> R
inlineconstexpr

The documentation for this struct was generated from the following file: