Public Types | Public Member Functions | Static Public Member Functions | List of all members
optional_caster< Type, Value > Struct Template Reference

#include <stl.h>

Public Types

using value_conv = make_caster< Value >
 

Public Member Functions

bool load (handle src, bool convert)
 
 PYBIND11_TYPE_CASTER (Type, const_name("Optional[")+value_conv::name+const_name("]"))
 

Static Public Member Functions

template<typename T >
static handle cast (T &&src, return_value_policy policy, handle parent)
 

Detailed Description

template<typename Type, typename Value = typename Type::value_type>
struct optional_caster< Type, Value >

Definition at line 308 of file stl.h.

Member Typedef Documentation

◆ value_conv

template<typename Type , typename Value = typename Type::value_type>
using optional_caster< Type, Value >::value_conv = make_caster<Value>

Definition at line 309 of file stl.h.

Member Function Documentation

◆ cast()

template<typename Type , typename Value = typename Type::value_type>
template<typename T >
static handle optional_caster< Type, Value >::cast ( T &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 312 of file stl.h.

◆ load()

template<typename Type , typename Value = typename Type::value_type>
bool optional_caster< Type, Value >::load ( handle  src,
bool  convert 
)
inline

Definition at line 323 of file stl.h.

◆ PYBIND11_TYPE_CASTER()

template<typename Type , typename Value = typename Type::value_type>
optional_caster< Type, Value >::PYBIND11_TYPE_CASTER ( Type  ,
const_name("Optional[")+value_conv::name+const_name("]")   
)

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


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:36