μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | Static Public Attributes | List of all members
move_only_holder_caster< type, holder_type, SFINAE > Struct Template Reference

Type caster for holder types like std::unique_ptr. More...

#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/cast.h>

Inheritance diagram for move_only_holder_caster< type, holder_type, SFINAE >:
[legend]

Static Public Member Functions

static handle cast (holder_type &&src, return_value_policy, handle)
 
static handle cast (holder_type &&src, return_value_policy, handle)
 

Static Public Attributes

static constexpr auto name = type_caster_base<type>::name
 

Detailed Description

template<typename type, typename holder_type, typename SFINAE = void>
struct move_only_holder_caster< type, holder_type, SFINAE >

Type caster for holder types like std::unique_ptr.

Please consider the SFINAE hook an implementation detail, as explained in the comment for the copyable_holder_caster.

Definition at line 832 of file cast.h.

Member Function Documentation

◆ cast() [1/2]

template<typename type , typename holder_type , typename SFINAE = void>
static handle move_only_holder_caster< type, holder_type, SFINAE >::cast ( holder_type &&  src,
return_value_policy  ,
handle   
)
inlinestatic

Definition at line 836 of file cast.h.

References type_caster_base< type >::cast_holder(), and holder_helper< T >::get().

◆ cast() [2/2]

template<typename type , typename holder_type , typename SFINAE = void>
static handle move_only_holder_caster< type, holder_type, SFINAE >::cast ( holder_type &&  src,
return_value_policy  ,
handle   
)
inlinestatic

Definition at line 830 of file cast.h.

References type_caster_base< type >::cast_holder(), and holder_helper< T >::get().

Member Data Documentation

◆ name

template<typename type , typename holder_type , typename SFINAE = void>
static constexpr auto move_only_holder_caster< type, holder_type, SFINAE >::name = type_caster_base<type>::name
staticconstexpr

Definition at line 840 of file cast.h.


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