WPILibC++ 2025.1.1
|
Namespaces | |
namespace | swap_adl_tests |
Typedefs | |
template<class T > | |
using | remove_const_t = typename std::remove_const<T>::type |
template<class T > | |
using | remove_reference_t = typename std::remove_reference<T>::type |
template<class T > | |
using | decay_t = typename std::decay<T>::type |
template<bool E, class T = void> | |
using | enable_if_t = typename std::enable_if<E, T>::type |
template<bool B, class T , class F > | |
using | conditional_t = typename std::conditional<B, T, F>::type |
template<class F , class... Us> | |
using | invoke_result = invoke_result_impl<F, void, Us...> |
template<class F , class... Us> | |
using | invoke_result_t = typename invoke_result<F, Us...>::type |
template<class T > | |
using | is_expected = is_expected_impl<decay_t<T>> |
template<class T , class E , class U > | |
using | expected_enable_forward_value |
template<class T , class E , class U , class G , class UR , class GR > | |
using | expected_enable_from_other |
template<class T , class U > | |
using | is_void_or = conditional_t<std::is_void<T>::value, std::true_type, U> |
template<class T > | |
using | is_copy_constructible_or_void |
template<class T > | |
using | is_move_constructible_or_void |
template<class T > | |
using | is_copy_assignable_or_void = is_void_or<T, std::is_copy_assignable<T>> |
template<class T > | |
using | is_move_assignable_or_void = is_void_or<T, std::is_move_assignable<T>> |
template<class Exp > | |
using | exp_t = typename detail_expected::decay_t<Exp>::value_type |
template<class Exp > | |
using | err_t = typename detail_expected::decay_t<Exp>::error_type |
template<class Exp , class Ret > | |
using | ret_t = expected<Ret, err_t<Exp>> |
Functions | |
template<typename E > | |
WPI_EXPECTED_11_CONSTEXPR void | throw_exception (E &&e) |
template<typename Fn , typename... Args, typename = enable_if_t<std::is_member_pointer<decay_t<Fn>>::value>, int = 0> | |
constexpr auto | invoke (Fn &&f, Args &&...args) noexcept(noexcept(std::mem_fn(f)(std::forward< Args >(args)...))) -> decltype(std::mem_fn(f)(std::forward< Args >(args)...)) |
template<typename Fn , typename... Args, typename = enable_if_t<!std::is_member_pointer<decay_t<Fn>>::value>> | |
constexpr auto | invoke (Fn &&f, Args &&...args) noexcept(noexcept(std::forward< Fn >(f)(std::forward< Args >(args)...))) -> decltype(std::forward< Fn >(f)(std::forward< Args >(args)...)) |
template<class Exp , class F , class Ret = decltype(detail_expected::invoke(std::declval<F>(), *std::declval<Exp>())), detail_expected::enable_if_t<!std::is_void< exp_t< Exp > >::value > * = nullptr> | |
auto | and_then_impl (Exp &&exp, F &&f) -> Ret |
template<class Exp , class F , class Ret = decltype(detail_expected::invoke(std::declval<F>())), detail_expected::enable_if_t< std::is_void< exp_t< Exp > >::value > * = nullptr> | |
constexpr auto | and_then_impl (Exp &&exp, F &&f) -> Ret |
template<class Exp , class F , detail_expected::enable_if_t<!std::is_void< exp_t< Exp > >::value > * = nullptr, class Ret = decltype(detail_expected::invoke(std::declval<F>(), *std::declval<Exp>())), detail_expected::enable_if_t<!std::is_void< Ret >::value > * = nullptr> | |
constexpr auto | expected_map_impl (Exp &&exp, F &&f) -> ret_t< Exp, detail_expected::decay_t< Ret > > |
template<class Exp , class F , detail_expected::enable_if_t<!std::is_void< exp_t< Exp > >::value > * = nullptr, class Ret = decltype(detail_expected::invoke(std::declval<F>(), *std::declval<Exp>())), detail_expected::enable_if_t< std::is_void< Ret >::value > * = nullptr> | |
auto | expected_map_impl (Exp &&exp, F &&f) -> expected< void, err_t< Exp > > |
template<class Exp , class F , detail_expected::enable_if_t<!std::is_void< exp_t< Exp > >::value > * = nullptr, class Ret = decltype(detail_expected::invoke(std::declval<F>(), std::declval<Exp>().error())), detail_expected::enable_if_t<!std::is_void< Ret >::value > * = nullptr> | |
constexpr auto | map_error_impl (Exp &&exp, F &&f) -> expected< exp_t< Exp >, detail_expected::decay_t< Ret > > |
template<class Exp , class F , detail_expected::enable_if_t<!std::is_void< exp_t< Exp > >::value > * = nullptr, class Ret = decltype(detail_expected::invoke(std::declval<F>(), std::declval<Exp>().error())), detail_expected::enable_if_t< std::is_void< Ret >::value > * = nullptr> | |
auto | map_error_impl (Exp &&exp, F &&f) -> expected< exp_t< Exp >, monostate > |
template<class Exp , class F , class Ret = decltype(detail_expected::invoke(std::declval<F>(), std::declval<Exp>().error())), detail_expected::enable_if_t<!std::is_void< Ret >::value > * = nullptr> | |
auto | or_else_impl (Exp &&exp, F &&f) -> Ret |
template<class Exp , class F , class Ret = decltype(detail_expected::invoke(std::declval<F>(), std::declval<Exp>().error())), detail_expected::enable_if_t< std::is_void< Ret >::value > * = nullptr> | |
detail_expected::decay_t< Exp > | or_else_impl (Exp &&exp, F &&f) |
Variables | |
static constexpr no_init_t | no_init {} |
using wpi::detail_expected::conditional_t = typename std::conditional<B, T, F>::type |
using wpi::detail_expected::decay_t = typename std::decay<T>::type |
using wpi::detail_expected::enable_if_t = typename std::enable_if<E, T>::type |
using wpi::detail_expected::err_t = typename detail_expected::decay_t<Exp>::error_type |
using wpi::detail_expected::exp_t = typename detail_expected::decay_t<Exp>::value_type |
using wpi::detail_expected::expected_enable_forward_value |
using wpi::detail_expected::expected_enable_from_other |
using wpi::detail_expected::invoke_result = invoke_result_impl<F, void, Us...> |
using wpi::detail_expected::invoke_result_t = typename invoke_result<F, Us...>::type |
using wpi::detail_expected::is_copy_assignable_or_void = is_void_or<T, std::is_copy_assignable<T>> |
using wpi::detail_expected::is_copy_constructible_or_void |
using wpi::detail_expected::is_expected = is_expected_impl<decay_t<T>> |
using wpi::detail_expected::is_move_assignable_or_void = is_void_or<T, std::is_move_assignable<T>> |
using wpi::detail_expected::is_move_constructible_or_void |
using wpi::detail_expected::is_void_or = conditional_t<std::is_void<T>::value, std::true_type, U> |
using wpi::detail_expected::remove_const_t = typename std::remove_const<T>::type |
using wpi::detail_expected::remove_reference_t = typename std::remove_reference<T>::type |
using wpi::detail_expected::ret_t = expected<Ret, err_t<Exp>> |
auto wpi::detail_expected::and_then_impl | ( | Exp && | exp, |
F && | f ) -> Ret |
|
constexpr |
auto wpi::detail_expected::expected_map_impl | ( | Exp && | exp, |
F && | f ) -> expected<void, err_t<Exp>> |
|
constexpr |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexpr |
auto wpi::detail_expected::map_error_impl | ( | Exp && | exp, |
F && | f ) -> expected<exp_t<Exp>, monostate> |
detail_expected::decay_t< Exp > wpi::detail_expected::or_else_impl | ( | Exp && | exp, |
F && | f ) |
auto wpi::detail_expected::or_else_impl | ( | Exp && | exp, |
F && | f ) -> Ret |
WPI_EXPECTED_11_CONSTEXPR void wpi::detail_expected::throw_exception | ( | E && | e | ) |
|
staticconstexpr |