Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
set_caster< Type, Key > Struct Template Reference

#include <stl.h>

Public Types

using key_conv = make_caster< Key >
 
using type = Type
 

Public Member Functions

bool load (handle src, bool convert)
 
 PYBIND11_TYPE_CASTER (type, const_name("set[")+key_conv::name+const_name("]"))
 

Static Public Member Functions

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

Private Member Functions

void reserve_maybe (const anyset &, void *)
 
template<typename T = Type, enable_if_t< has_reserve_method< T >::value, int > = 0>
void reserve_maybe (const anyset &s, Type *)
 

Detailed Description

template<typename Type, typename Key>
struct set_caster< Type, Key >

Definition at line 58 of file stl.h.

Member Typedef Documentation

◆ key_conv

template<typename Type , typename Key >
using set_caster< Type, Key >::key_conv = make_caster<Key>

Definition at line 60 of file stl.h.

◆ type

template<typename Type , typename Key >
using set_caster< Type, Key >::type = Type

Definition at line 59 of file stl.h.

Member Function Documentation

◆ cast()

template<typename Type , typename Key >
template<typename T >
static handle set_caster< Type, Key >::cast ( T &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 88 of file stl.h.

◆ load()

template<typename Type , typename Key >
bool set_caster< Type, Key >::load ( handle  src,
bool  convert 
)
inline

Definition at line 70 of file stl.h.

◆ PYBIND11_TYPE_CASTER()

template<typename Type , typename Key >
set_caster< Type, Key >::PYBIND11_TYPE_CASTER ( type  ,
const_name("set[")+key_conv::name+const_name("]")   
)

◆ reserve_maybe() [1/2]

template<typename Type , typename Key >
void set_caster< Type, Key >::reserve_maybe ( const anyset ,
void *   
)
inlineprivate

Definition at line 67 of file stl.h.

◆ reserve_maybe() [2/2]

template<typename Type , typename Key >
template<typename T = Type, enable_if_t< has_reserve_method< T >::value, int > = 0>
void set_caster< Type, Key >::reserve_maybe ( const anyset s,
Type  
)
inlineprivate

Definition at line 64 of file stl.h.


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


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:48