v8  3.28.71(node0.12.18)
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 888 of file v8.h.

Constructor & Destructor Documentation

Maybe ( )
inline

Definition at line 889 of file v8.h.

References Maybe< T >::has_value.

Maybe ( t)
inlineexplicit

Definition at line 890 of file v8.h.

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

Maybe ( bool  has,
t 
)
inline

Definition at line 891 of file v8.h.

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

Field Documentation

bool has_value

Definition at line 893 of file v8.h.

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

T value

Definition at line 894 of file v8.h.

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


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