v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
Maybe< void > Class Reference

#include <v8-maybe.h>

Public Member Functions

constexpr Maybe ()=default
 
constexpr Maybe (internal::NullMaybeType)
 
V8_INLINE bool IsNothing () const
 
V8_INLINE bool IsEmpty () const
 
V8_INLINE bool IsJust () const
 
V8_INLINE bool operator== (const Maybe &other) const
 
V8_INLINE bool operator!= (const Maybe &other) const
 

Friends

Maybe< void > JustVoid ()
 

Detailed Description

Definition at line 154 of file v8-maybe.h.

Constructor & Destructor Documentation

◆ Maybe() [1/2]

constexpr Maybe ( )
constexprdefault

◆ Maybe() [2/2]

constexpr Maybe ( internal::NullMaybeType  )
inlineconstexpr

Definition at line 157 of file v8-maybe.h.

Member Function Documentation

◆ IsEmpty()

V8_INLINE bool IsEmpty ( ) const
inline

Definition at line 160 of file v8-maybe.h.

References Maybe< void >::IsNothing().

◆ IsJust()

V8_INLINE bool IsJust ( ) const
inline

Definition at line 161 of file v8-maybe.h.

Referenced by Maybe< void >::operator==().

◆ IsNothing()

V8_INLINE bool IsNothing ( ) const
inline

Definition at line 159 of file v8-maybe.h.

Referenced by Maybe< void >::IsEmpty().

◆ operator!=()

V8_INLINE bool operator!= ( const Maybe< void > &  other) const
inline

Definition at line 167 of file v8-maybe.h.

References Maybe< void >::operator==().

◆ operator==()

V8_INLINE bool operator== ( const Maybe< void > &  other) const
inline

Definition at line 163 of file v8-maybe.h.

References Maybe< void >::IsJust().

Referenced by Maybe< void >::operator!=().

Friends And Related Symbol Documentation

◆ JustVoid

Maybe< void > JustVoid ( )
friend

Definition at line 181 of file v8-maybe.h.


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