ROSE  0.11.145.0
Public Types | Public Member Functions | List of all members
Sawyer::Ok< T > Class Template Reference

Description

template<class T>
class Sawyer::Ok< T >

Success value.

Definition at line 38 of file Result.h.

#include <util/Sawyer/Result.h>

Public Types

using Value = T
 

Public Member Functions

 Ok (const Ok &other)
 Copy constructor. More...
 
 Ok (const Value &ok)
 Construct from an value. More...
 
const Value & operator* () const
 Dereference to obtain value. More...
 
const Value * operator-> () const
 Dereference to obtain pointer. More...
 
Okoperator= (const Ok &other)
 Assignment.
 
Okoperator= (const Value &ok)
 Assignment.
 

Constructor & Destructor Documentation

template<class T>
Sawyer::Ok< T >::Ok ( const Ok< T > &  other)
inline

Copy constructor.

Definition at line 57 of file Result.h.

template<class T>
Sawyer::Ok< T >::Ok ( const Value &  ok)
inlineexplicit

Construct from an value.

Definition at line 61 of file Result.h.

Member Function Documentation

template<class T>
const Value& Sawyer::Ok< T >::operator* ( ) const
inline

Dereference to obtain value.

Definition at line 78 of file Result.h.

template<class T>
const Value* Sawyer::Ok< T >::operator-> ( ) const
inline

Dereference to obtain pointer.

Definition at line 83 of file Result.h.


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