My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Private Member Functions
vspace::Result< T > Struct Template Reference

#include <vspace.h>

Public Member Functions

 Result (T result)
 
 Result ()
 

Data Fields

bool ok
 
T result
 

Private Member Functions

Tdefault_value ()
 

Detailed Description

template<typename T>
struct vspace::Result< T >

Definition at line 1384 of file vspace.h.

Constructor & Destructor Documentation

◆ Result() [1/2]

template<typename T >
vspace::Result< T >::Result ( T  result)
inline

Definition at line 1387 of file vspace.h.

1387 : ok(true), result(result) {
1388 }

◆ Result() [2/2]

template<typename T >
vspace::Result< T >::Result ( )
inline

Definition at line 1389 of file vspace.h.

1389 : ok(false), result(default_value()) {
1390 }
T & default_value()
Definition: vspace.h:1392

Member Function Documentation

◆ default_value()

template<typename T >
T & vspace::Result< T >::default_value ( )
inlineprivate

Definition at line 1392 of file vspace.h.

1392 {
1393 static T result;
1394 return result;
1395 }
STATIC_VAR jList * T
Definition: janet.cc:30

Field Documentation

◆ ok

template<typename T >
bool vspace::Result< T >::ok

Definition at line 1385 of file vspace.h.

◆ result

template<typename T >
T vspace::Result< T >::result

Definition at line 1386 of file vspace.h.


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