HepMC3 event record library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions
type_caster< std::basic_string< CharT, Traits, Allocator >, enable_if_t< is_std_char_type< CharT >::value > > Struct Template Reference
+ Inheritance diagram for type_caster< std::basic_string< CharT, Traits, Allocator >, enable_if_t< is_std_char_type< CharT >::value > >:
+ Collaboration diagram for type_caster< std::basic_string< CharT, Traits, Allocator >, enable_if_t< is_std_char_type< CharT >::value > >:

Public Types

using CharT = typename StringType::value_type
 

Public Member Functions

bool load (handle src, bool)
 
 PYBIND11_TYPE_CASTER (std::basic_string< CharT, Traits, Allocator >, _(PYBIND11_STRING_NAME))
 

Static Public Member Functions

static handle cast (const std::basic_string< CharT, Traits, Allocator > &src, return_value_policy, handle)
 

Static Public Attributes

static constexpr size_t UTF_N
 

Private Member Functions

bool load_bytes (enable_if_t< std::is_same< C, char >::value, handle > src)
 
bool load_bytes (enable_if_t<!std::is_same< C, char >::value, handle >)
 

Static Private Member Functions

static handle decode_utfN (const char *buffer, ssize_t nbytes)
 

Detailed Description

template<typename CharT, class Traits, class Allocator>
struct type_caster< std::basic_string< CharT, Traits, Allocator >, enable_if_t< is_std_char_type< CharT >::value > >

Definition at line 1306 of file cast.h.


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