L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
cxx::Result< T > Class Template Reference

A result of a function call. More...

#include <result>

Collaboration diagram for cxx::Result< T >:

Public Member Functions

 Result ()=delete
 Prevent default construction.

Detailed Description

template<typename T>
class cxx::Result< T >

A result of a function call.

Either has some resulting value or an error.

The error is always an integer and, if present, a negative value by convention. Any access to the value is fatal if the objects holds an error.

Definition at line 39 of file result.

Constructor & Destructor Documentation

◆ Result()

template<typename T>
cxx::Result< T >::Result ( )
delete

Prevent default construction.

A Result object either holds a value or an error. There is no third "empty" state.


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