NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
nah::Result< void, E > Class Template Reference

#include <nahhost.hpp>

Public Member Functions

Eerror ()
 
const Eerror () const
 
bool isErr () const
 
bool isOk () const
 
void value () const
 

Static Public Member Functions

static Result err (E error)
 
static Result ok ()
 

Detailed Description

template<typename E>
class nah::Result< void, E >

Definition at line 153 of file nahhost.hpp.

Member Function Documentation

◆ err()

template<typename E >
static Result nah::Result< void, E >::err ( E  error)
inlinestatic

Definition at line 156 of file nahhost.hpp.

◆ error() [1/2]

template<typename E >
E & nah::Result< void, E >::error ( )
inline

Definition at line 162 of file nahhost.hpp.

◆ error() [2/2]

template<typename E >
const E & nah::Result< void, E >::error ( ) const
inline

Definition at line 163 of file nahhost.hpp.

◆ isErr()

template<typename E >
bool nah::Result< void, E >::isErr ( ) const
inline

Definition at line 159 of file nahhost.hpp.

◆ isOk()

template<typename E >
bool nah::Result< void, E >::isOk ( ) const
inline

Definition at line 158 of file nahhost.hpp.

◆ ok()

template<typename E >
static Result nah::Result< void, E >::ok ( )
inlinestatic

Definition at line 155 of file nahhost.hpp.

◆ value()

template<typename E >
void nah::Result< void, E >::value ( ) const
inline

Definition at line 161 of file nahhost.hpp.


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