litert::Expected

Summary

Constructors and Destructors

Expected(std::initializer_list< U > il)
Expected(Args &&... args)
Expected(const T & t)
Expected(T && t)
Expected(const Unexpected & err)
Expected(Unexpected && err)
Expected(const class Error & e)
Expected(Expected && other)
Expected(const Expected & other)
~Expected()

Public attributes

unexpected_
value_
T

Public functions

Error() const &
const class Error &
Error()&
class Error &
Error() const &&=delete
const class Error &&
Error()&&=delete
class Error &&
HasValue() const
bool
Value() const &
const T &
Value()&
T &
Value() const &&=delete
const T &&
Value()&&=delete
T &&
operator bool() const
operator*() const &
const T &
operator*()&
T &
operator*() const &&=delete
const T &&
operator*()&&=delete
T &&
operator->() const &
const T *
operator->()&
T *
operator->() const &&=delete
const T *
operator->()&&=delete
T *
operator=(Expected && other)
operator=(const Expected & other)

Public attributes

unexpected_

Unexpected unexpected_

value_

T value_

Public functions

Error

const class Error & Error() const &

Error

class Error & Error()&

Error

const class Error && Error() const &&=delete

Error

class Error && Error()&&=delete

Expected

 Expected(
  std::initializer_list< U > il
)

Expected

 Expected(
  Args &&... args
)

Expected

 Expected(
  const T & t
)

Expected

 Expected(
  T && t
)

Expected

 Expected(
  const Unexpected & err
)

Expected

 Expected(
  Unexpected && err
)

Expected

 Expected(
  const class Error & e
)

Expected

 Expected(
  Expected && other
)

Expected

 Expected(
  const Expected & other
)

HasValue

bool HasValue() const 

Value

const T & Value() const &

Value

T & Value()&

Value

const T && Value() const &&=delete

Value

T && Value()&&=delete

operator bool

 operator bool() const 

operator*

const T & operator*() const &

operator*

T & operator*()&

operator*

const T && operator*() const &&=delete

operator*

T && operator*()&&=delete

operator->

const T * operator->() const &

operator->

T * operator->()&

operator->

const T * operator->() const &&=delete

operator->

T * operator->()&&=delete

operator=

Expected & operator=(
  Expected && other
)

operator=

Expected & operator=(
  const Expected & other
)

~Expected

 ~Expected()