v8  4.1.0.27(io.js1.8.4)
V8 is Google's open source JavaScript engine
Maybe< T > Struct Template Reference

#include <v8.h>

Public Member Functions

 Maybe ()
 
 Maybe (T t)
 
 Maybe (bool has, T t)
 

Data Fields

bool has_value
 
value
 

Detailed Description

template<class T>
struct v8::Maybe< T >

A simple Maybe type, representing an object which may or may not have a value.

Definition at line 951 of file v8.h.

Constructor & Destructor Documentation

Maybe ( )
inline

Definition at line 952 of file v8.h.

References Maybe< T >::has_value.

Maybe ( t)
inlineexplicit

Definition at line 953 of file v8.h.

References Maybe< T >::has_value, and Maybe< T >::value.

Maybe ( bool  has,
t 
)
inline

Definition at line 954 of file v8.h.

References Maybe< T >::has_value, and Maybe< T >::value.

Field Documentation

bool has_value

Definition at line 956 of file v8.h.

Referenced by Maybe< T >::Maybe().

T value

Definition at line 957 of file v8.h.

Referenced by Maybe< T >::Maybe().


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