template <typename T>

class StatusOrData

Defined at line 146 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

Helper base class to hold the data and all operations.

We move all this to a base class to allow mixing with the appropriate

TraitsBase specialization.

Protected Members

 
 

Public Methods

void StatusOrData<T> ()

Defined at line 151 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

void StatusOrData<T> (const StatusOrData<T> & other)

Defined at line 153 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

void StatusOrData<T> (StatusOrData<T> && other)

Defined at line 162 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename U>
void StatusOrData<T> (const StatusOrData<U> & other)

Defined at line 172 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename U>
void StatusOrData<T> (StatusOrData<U> && other)

Defined at line 182 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename... Args>
void StatusOrData<T> (absl::in_place_t , Args &&... args)

Defined at line 192 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

void StatusOrData<T> (const T & value)

Defined at line 197 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

void StatusOrData<T> (T && value)

Defined at line 200 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename U, absl::enable_if_t<std::is_constructible<absl::Status, U&&>::value,
                                                  int> = 0>
void StatusOrData<T> (U && v)

Defined at line 207 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

StatusOrData<T> & operator= (const StatusOrData<T> & other)

Defined at line 211 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

StatusOrData<T> & operator= (StatusOrData<T> && other)

Defined at line 220 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

void ~StatusOrData<T> ()

Defined at line 229 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename U>
void Assign (U && value)

Defined at line 239 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename U>
void AssignStatus (U && v)

Defined at line 249 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

bool ok ()

Defined at line 255 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

Protected Methods

void Clear ()

Defined at line 276 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

void EnsureOk ()

Defined at line 280 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

void EnsureNotOk ()

Defined at line 284 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename... Arg>
void MakeValue (Arg &&... arg)

Construct the value (ie. data_) through placement new with the passed

argument.

Defined at line 291 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

template <typename... Args>
void MakeStatus (Args &&... args)

Construct the status (ie. status_) through placement new with the passed

argument.

Defined at line 298 of file ../../third_party/abseil-cpp/absl/status/internal/statusor_internal.h

Records

Friends

template <typename U>
class StatusOrData