Octane API Client
Loading...
Searching...
No Matches
Public Member Functions | List of all members
octane::ok_t< T > Class Template Reference

Utility class that can be used when we only want to specify normal state types. More...

#include <result.h>

Public Member Functions

 ok_t (const T &ok)
 
 ok_t (T &&ok)
 
template<typename T_OK , typename T_Error >
 operator Result< T_OK, T_Error > ()
 

Detailed Description

template<typename T>
class octane::ok_t< T >

Utility class that can be used when we only want to specify normal state types.

octane::okで内部的に用いられる型。 任意のResultにキャストすることができる。 Types used internally in octane::ok. Can be cast to any Result.

Template Parameters
TType of normal state.

Constructor & Destructor Documentation

◆ ok_t() [1/2]

template<typename T >
octane::ok_t< T >::ok_t ( const T &  ok)
inlineexplicit
Here is the call graph for this function:

◆ ok_t() [2/2]

template<typename T >
octane::ok_t< T >::ok_t ( T &&  ok)
inlineexplicit
Here is the call graph for this function:

Member Function Documentation

◆ operator Result< T_OK, T_Error >()

template<typename T >
template<typename T_OK , typename T_Error >
octane::ok_t< T >::operator Result< T_OK, T_Error > ( )
inline
Here is the call graph for this function:

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