OR-Tools  8.0
StatusOr< T >

Detailed Description

template<class T>
struct absl::StatusOr< T >

Definition at line 24 of file statusor.h.

Public Member Functions

 StatusOr (T value)
 
 StatusOr (const Status &status)
 
 StatusOr (const StatusOr &other)
 
bool ok () const
 
const T & value () const
 
Status status () const
 
template<typename U >
value_or (U &&default_value) const &
 

Constructor & Destructor Documentation

◆ StatusOr() [1/3]

StatusOr ( value)
inline

Definition at line 26 of file statusor.h.

◆ StatusOr() [2/3]

StatusOr ( const Status &  status)
inline

Definition at line 27 of file statusor.h.

◆ StatusOr() [3/3]

StatusOr ( const StatusOr< T > &  other)
inline

Definition at line 32 of file statusor.h.

Member Function Documentation

◆ ok()

bool ok ( ) const
inline

Definition at line 35 of file statusor.h.

◆ status()

Status status ( ) const
inline

Definition at line 41 of file statusor.h.

◆ value()

const T& value ( ) const
inline

Definition at line 36 of file statusor.h.

◆ value_or()

T value_or ( U &&  default_value) const &
inline

Definition at line 44 of file statusor.h.


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