MySQL 9.0.0
Source Code Documentation
stdx::base Namespace Reference

Functions

template<class Exp , class Func , typename value_type = typename std::decay_t<Exp>::value_type>
requires (std::is_void_v<value_type> ? std::is_invocable_v<Func> : std::is_invocable_v<Func, value_type>)
constexpr auto and_then_impl (Exp &&exp, Func &&func)
 
template<class Exp , class Func , typename error_type = typename std::decay_t<Exp>::error_type>
requires std::is_invocable_v<Func, error_type>
constexpr auto or_else_impl (Exp &&exp, Func &&func)
 

Function Documentation

◆ and_then_impl()

template<class Exp , class Func , typename value_type = typename std::decay_t<Exp>::value_type>
requires (std::is_void_v<value_type> ? std::is_invocable_v<Func> : std::is_invocable_v<Func, value_type>)
constexpr auto stdx::base::and_then_impl ( Exp &&  exp,
Func &&  func 
)
constexpr

◆ or_else_impl()

template<class Exp , class Func , typename error_type = typename std::decay_t<Exp>::error_type>
requires std::is_invocable_v<Func, error_type>
constexpr auto stdx::base::or_else_impl ( Exp &&  exp,
Func &&  func 
)
constexpr