template<typename EnumType, typename IntegerType = std::underlying_type_t<EnumType>>
struct lass::python::PyExportTraitsEnum< EnumType, IntegerType >
Helper to specialise PyExportTraits for enumerations.
When you want to export enumeration types, you need to specialize PyExportTraits for it. This structure will help you
enum MyEnumeration { meFoo, meBar, meFuz };
{
{
}
}
Comprehensive C++ to Python binding library.
Library for Assembled Shared Sources.
Helper to specialise PyExportTraits for enumerations.
by copy, general case assumes shadow type or PyObjectPlus based type.
Definition at line 126 of file pyobject_plus.h.