class success

Type representing success with zero or one value.

Base type.

class success

class success

Defined at line 152 of file ../../sdk/lib/fit/include/lib/fit/result.h

Type representing a success value of type T to return as a result. Returning a value through fit::result always requires using fit::success to disambiguate errors from values.

fit::result<E, T> is implicitly constructible from any fit::success<U>, where T is constructible from U. This simplifies returning values when T has converting constructors.

Functions

success<type-parameter-0-0>

public void success<type-parameter-0-0>(Args &&... args)

Defined at line 160 of file ../../sdk/lib/fit/include/lib/fit/result.h

Constructs a success value with the given arguments.

~success<type-parameter-0-0>

public void ~success<type-parameter-0-0>()

Defined at line 162 of file ../../sdk/lib/fit/include/lib/fit/result.h

success<type-parameter-0-0>

public void success<type-parameter-0-0>(const success<type-parameter-0-0> & )

Defined at line 165 of file ../../sdk/lib/fit/include/lib/fit/result.h

Error has the same copyability and moveability as the underlying type E.

operator=

public success<type-parameter-0-0> & operator=(const success<type-parameter-0-0> & )

Defined at line 166 of file ../../sdk/lib/fit/include/lib/fit/result.h

success<type-parameter-0-0>

public void success<type-parameter-0-0>(success<type-parameter-0-0> && )

Defined at line 167 of file ../../sdk/lib/fit/include/lib/fit/result.h

operator=

public success<type-parameter-0-0> & operator=(success<type-parameter-0-0> && )

Defined at line 168 of file ../../sdk/lib/fit/include/lib/fit/result.h

class success

class success

Defined at line 178 of file ../../sdk/lib/fit/include/lib/fit/result.h

Specialization of success for empty values.

Functions

success

public void success()

Defined at line 181 of file ../../sdk/lib/fit/include/lib/fit/result.h

~success

public void ~success()

Defined at line 182 of file ../../sdk/lib/fit/include/lib/fit/result.h

success

public void success(const success<> & )

Defined at line 184 of file ../../sdk/lib/fit/include/lib/fit/result.h

operator=

public success<> & operator=(const success<> & )

Defined at line 185 of file ../../sdk/lib/fit/include/lib/fit/result.h

success

public void success(success<> && )

Defined at line 186 of file ../../sdk/lib/fit/include/lib/fit/result.h

operator=

public success<> & operator=(success<> && )

Defined at line 187 of file ../../sdk/lib/fit/include/lib/fit/result.h