template <typename T>

class StatusOrData

Defined at line 38 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.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 43 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

Defined at line 45 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

Defined at line 54 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

Defined at line 64 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

Defined at line 74 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void StatusOrData<T> (const T & value)

NOLINTNEXTLINE(modernize-pass-by-value)

Defined at line 84 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void StatusOrData<T> (T && value)

Defined at line 85 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void StatusOrData<T> (const Status & status)

NOLINTNEXTLINE(modernize-pass-by-value)

Defined at line 88 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void StatusOrData<T> (Status && status)

Defined at line 89 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

Defined at line 91 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

Defined at line 104 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void ~StatusOrData<T> ()

Defined at line 117 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void Assign (const T & value)

Defined at line 126 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void Assign (T && value)

Defined at line 136 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void Assign (const Status & status)

Defined at line 146 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void Assign (Status && status)

Defined at line 152 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

bool ok ()

Defined at line 158 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

Protected Methods

void Clear ()

Defined at line 179 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void EnsureOk ()

Defined at line 185 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

void EnsureNotOk ()

Defined at line 191 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

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

argument.

Defined at line 200 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

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

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

argument.

Defined at line 207 of file ../../third_party/cobalt/src/public/lib/statusor/statusor_internals.h

Records

Friends

template <typename U>
class StatusOrData