Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
q23 Namespace Reference

Namespaces

namespace  _detail
namespace  detail

Classes

class  bad_expected_access
class  expected
struct  in_place_t
struct  is_scoped_enum
struct  is_scoped_enum< T, false >
class  monostate
struct  unexpect_t
class  unexpected

Functions

template<typename R, typename F, typename... Args>
constexpr std::enable_if_t< std::is_invocable_r_v< R, F, Args... >, Rinvoke_r (F &&f, Args &&... args) noexcept(std::is_nothrow_invocable_r_v< R, F, Args... >)
template<class T, class U>
constexpr auto forward_like (U &&x) noexcept -> _detail::forward_like_ret_t< T, U >
template<class E>
constexpr bool operator== (const unexpected< E > &lhs, const unexpected< E > &rhs)
template<class E>
constexpr bool operator!= (const unexpected< E > &lhs, const unexpected< E > &rhs)
template<class E>
constexpr bool operator< (const unexpected< E > &lhs, const unexpected< E > &rhs)
template<class E>
constexpr bool operator<= (const unexpected< E > &lhs, const unexpected< E > &rhs)
template<class E>
constexpr bool operator> (const unexpected< E > &lhs, const unexpected< E > &rhs)
template<class E>
constexpr bool operator>= (const unexpected< E > &lhs, const unexpected< E > &rhs)
template<class E>
unexpected< typename std::decay< E >::typemake_unexpected (E &&e)
template<class T, class E, class U, class F>
constexpr bool operator== (const expected< T, E > &lhs, const expected< U, F > &rhs)
template<class T, class E, class U, class F>
constexpr bool operator!= (const expected< T, E > &lhs, const expected< U, F > &rhs)
template<class E, class F>
constexpr bool operator== (const expected< void, E > &lhs, const expected< void, F > &rhs)
template<class E, class F>
constexpr bool operator!= (const expected< void, E > &lhs, const expected< void, F > &rhs)
template<class T, class E, class U>
constexpr bool operator== (const expected< T, E > &x, const U &v)
template<class T, class E, class U>
constexpr bool operator== (const U &v, const expected< T, E > &x)
template<class T, class E, class U>
constexpr bool operator!= (const expected< T, E > &x, const U &v)
template<class T, class E, class U>
constexpr bool operator!= (const U &v, const expected< T, E > &x)
template<class T, class E>
constexpr bool operator== (const expected< T, E > &x, const unexpected< E > &e)
template<class T, class E>
constexpr bool operator== (const unexpected< E > &e, const expected< T, E > &x)
template<class T, class E>
constexpr bool operator!= (const expected< T, E > &x, const unexpected< E > &e)
template<class T, class E>
constexpr bool operator!= (const unexpected< E > &e, const expected< T, E > &x)
template<class T, class E, detail::enable_if_t<(std::is_void< T >::value||std::is_move_constructible< T >::value) &&detail::is_swappable< T >::value &&std::is_move_constructible< E >::value &&detail::is_swappable< E >::value > * = nullptr>
void swap (expected< T, E > &lhs, expected< T, E > &rhs) noexcept(noexcept(lhs.swap(rhs)))

Variables

template<typename E>
constexpr bool is_scoped_enum_v = is_scoped_enum<E>::value
static constexpr in_place_t in_place {}
static constexpr unexpect_t unexpect {}

Function Documentation

◆ forward_like()

template<class T, class U>
auto q23::forward_like ( U && x) -> _detail::forward_like_ret_t<T, U>
nodiscardconstexprnoexcept

Definition at line 64 of file q23utility.h.

◆ invoke_r()

template<typename R, typename F, typename... Args>
std::enable_if_t< std::is_invocable_r_v< R, F, Args... >, R > q23::invoke_r ( F && f,
Args &&... args )
constexprnoexcept

Definition at line 35 of file q23functional.h.

◆ make_unexpected()

template<class E>
unexpected< typename std::decay< E >::type > q23::make_unexpected ( E && e)

Definition at line 237 of file qexpected_p.h.

◆ operator!=() [1/7]

template<class T, class E, class U, class F>
bool q23::operator!= ( const expected< T, E > & lhs,
const expected< U, F > & rhs )
constexpr

Definition at line 2440 of file qexpected_p.h.

◆ operator!=() [2/7]

template<class T, class E, class U>
bool q23::operator!= ( const expected< T, E > & x,
const U & v )
constexpr

Definition at line 2470 of file qexpected_p.h.

◆ operator!=() [3/7]

template<class T, class E>
bool q23::operator!= ( const expected< T, E > & x,
const unexpected< E > & e )
constexpr

Definition at line 2487 of file qexpected_p.h.

◆ operator!=() [4/7]

template<class E, class F>
bool q23::operator!= ( const expected< void, E > & lhs,
const expected< void, F > & rhs )
constexpr

Definition at line 2454 of file qexpected_p.h.

◆ operator!=() [5/7]

template<class T, class E, class U>
bool q23::operator!= ( const U & v,
const expected< T, E > & x )
constexpr

Definition at line 2474 of file qexpected_p.h.

◆ operator!=() [6/7]

template<class T, class E>
bool q23::operator!= ( const unexpected< E > & e,
const expected< T, E > & x )
constexpr

Definition at line 2491 of file qexpected_p.h.

◆ operator!=() [7/7]

template<class E>
bool q23::operator!= ( const unexpected< E > & lhs,
const unexpected< E > & rhs )
constexpr

Definition at line 216 of file qexpected_p.h.

◆ operator<()

template<class E>
bool q23::operator< ( const unexpected< E > & lhs,
const unexpected< E > & rhs )
constexpr

Definition at line 220 of file qexpected_p.h.

◆ operator<=()

template<class E>
bool q23::operator<= ( const unexpected< E > & lhs,
const unexpected< E > & rhs )
constexpr

Definition at line 224 of file qexpected_p.h.

◆ operator==() [1/7]

template<class T, class E, class U, class F>
bool q23::operator== ( const expected< T, E > & lhs,
const expected< U, F > & rhs )
constexpr

Definition at line 2433 of file qexpected_p.h.

◆ operator==() [2/7]

template<class T, class E, class U>
bool q23::operator== ( const expected< T, E > & x,
const U & v )
constexpr

Definition at line 2462 of file qexpected_p.h.

◆ operator==() [3/7]

template<class T, class E>
bool q23::operator== ( const expected< T, E > & x,
const unexpected< E > & e )
constexpr

Definition at line 2479 of file qexpected_p.h.

◆ operator==() [4/7]

template<class E, class F>
bool q23::operator== ( const expected< void, E > & lhs,
const expected< void, F > & rhs )
constexpr

Definition at line 2447 of file qexpected_p.h.

◆ operator==() [5/7]

template<class T, class E, class U>
bool q23::operator== ( const U & v,
const expected< T, E > & x )
constexpr

Definition at line 2466 of file qexpected_p.h.

◆ operator==() [6/7]

template<class T, class E>
bool q23::operator== ( const unexpected< E > & e,
const expected< T, E > & x )
constexpr

Definition at line 2483 of file qexpected_p.h.

◆ operator==() [7/7]

template<class E>
bool q23::operator== ( const unexpected< E > & lhs,
const unexpected< E > & rhs )
constexpr

Definition at line 212 of file qexpected_p.h.

◆ operator>()

template<class E>
bool q23::operator> ( const unexpected< E > & lhs,
const unexpected< E > & rhs )
constexpr

Definition at line 228 of file qexpected_p.h.

◆ operator>=()

template<class E>
bool q23::operator>= ( const unexpected< E > & lhs,
const unexpected< E > & rhs )
constexpr

Definition at line 232 of file qexpected_p.h.

◆ swap()

template<class T, class E, detail::enable_if_t<(std::is_void< T >::value||std::is_move_constructible< T >::value) &&detail::is_swappable< T >::value &&std::is_move_constructible< E >::value &&detail::is_swappable< E >::value > * = nullptr>
void q23::swap ( expected< T, E > & lhs,
expected< T, E > & rhs )
noexcept

Definition at line 2501 of file qexpected_p.h.

Variable Documentation

◆ in_place

◆ is_scoped_enum_v

template<typename E>
bool q23::is_scoped_enum_v = is_scoped_enum<E>::value
inlineconstexpr

Definition at line 42 of file q23type_traits.h.

◆ unexpect

unexpect_t q23::unexpect {}
staticconstexpr

Definition at line 244 of file qexpected_p.h.