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

#include <stl.h>

Public Types

using value_conv = make_caster< typename T::value_type >
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

template<typename T>
struct optional_caster< T >

Definition at line 262 of file stl.h.

Member Typedef Documentation

template<typename T >
using optional_caster< T >::value_conv = make_caster<typename T::value_type>

Definition at line 263 of file stl.h.

Member Function Documentation

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

Definition at line 266 of file stl.h.

template<typename T >
bool optional_caster< T >::load ( handle  src,
bool  convert 
)
inline

Definition at line 275 of file stl.h.

template<typename T >
optional_caster< T >::PYBIND11_TYPE_CASTER ( T  ,
_("Optional[")+value_conv::name+_("]")   
)

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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:48