MCPcopy Create free account
hub / github.com/pybind/pybind11 / init

Method init

include/pybind11/attr.h:676–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674template <typename... Args>
675struct process_attributes {
676 static void init(const Args &...args, function_record *r) {
677 PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(r);
678 PYBIND11_WORKAROUND_INCORRECT_GCC_UNUSED_BUT_SET_PARAMETER(r);
679 using expander = int[];
680 (void) expander{
681 0, ((void) process_attribute<typename std::decay<Args>::type>::init(args, r), 0)...};
682 }
683 static void init(const Args &...args, type_record *r) {
684 PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(r);
685 PYBIND11_WORKAROUND_INCORRECT_GCC_UNUSED_BUT_SET_PARAMETER(r);

Callers

nothing calls this directly

Calls 1

initFunction · 0.85

Tested by

no test coverage detected