ROSE  0.11.96.11
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 <Result.h>

Public Types

using Value = T
 

Public Member Functions

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

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