nngn
Loading...
Searching...
No Matches
nngn::lua::stack_push< std::optional< T > > Struct Template Reference

Pushes a T if the object contains a value, otherwise nothing. More...

#include <push.h>

Static Public Member Functions

static int push (lua_State *L, std::optional< T > &&o)
 
static int push (lua_State *L, std::optional< T > &&o)
 

Detailed Description

template<typename T>
struct nngn::lua::stack_push< std::optional< T > >

Pushes a T if the object contains a value, otherwise nothing.

Member Function Documentation

◆ push() [1/2]

template<typename T >
static int nngn::lua::stack_push< std::optional< T > >::push ( lua_State *  L,
std::optional< T > &&  o 
)
inlinestatic

◆ push() [2/2]

template<typename T >
static int nngn::lua::stack_push< std::optional< T > >::push ( lua_State *  L,
std::optional< T > &&  o 
)
inlinestatic

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