cuSBF
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
cusbf::Result< T > Struct Template Reference

Fallible API result: cuda::std::expected<T, Error> with cuSBF factories. More...

#include <error.hpp>

Inheritance diagram for cusbf::Result< T >:
[legend]
Collaboration diagram for cusbf::Result< T >:
[legend]

Static Public Member Functions

static Result ok (T value)
 
static Result err (Error error)
 

Detailed Description

template<typename T>
struct cusbf::Result< T >

Fallible API result: cuda::std::expected<T, Error> with cuSBF factories.

Layout-compatible with the base type. Inherits construction, operator*, operator->, value, error, and conversion from cuda::std::unexpected<Error>.

Definition at line 152 of file error.hpp.

Member Function Documentation

◆ err()

template<typename T >
static Result cusbf::Result< T >::err ( Error  error)
inlinestatic

Definition at line 159 of file error.hpp.

159 {
160 return Result(cuda::std::unexpect, std::move(error));
161 }

◆ ok()

template<typename T >
static Result cusbf::Result< T >::ok ( value)
inlinestatic

Definition at line 155 of file error.hpp.

155 {
156 return Result(std::move(value));
157 }
Here is the caller graph for this function:

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