V8 Project
v8::Maybe< T > Struct Template Reference

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

#include <v8.h>

+ Inheritance diagram for v8::Maybe< T >:
+ Collaboration diagram for v8::Maybe< T >:

Public Member Functions

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

Public Attributes

bool has_value
 
T 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 890 of file v8.h.

Constructor & Destructor Documentation

◆ Maybe() [1/3]

template<class T >
v8::Maybe< T >::Maybe ( )
inline

Definition at line 891 of file v8.h.

891 : has_value(false) {}
bool has_value
Definition: v8.h:895

◆ Maybe() [2/3]

template<class T >
v8::Maybe< T >::Maybe ( T  t)
inlineexplicit

Definition at line 892 of file v8.h.

892 : has_value(true), value(t) {}
T value
Definition: v8.h:896

◆ Maybe() [3/3]

template<class T >
v8::Maybe< T >::Maybe ( bool  has,
T  t 
)
inline

Definition at line 893 of file v8.h.

893 : has_value(has), value(t) {}

Member Data Documentation

◆ has_value

◆ value


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