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

Function pickle

include/pybind11/pybind11.h:2925–2927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2923/// returned by `__getstate__` is the same as the argument accepted by `__setstate__`.
2924template <typename GetState, typename SetState>
2925detail::initimpl::pickle_factory<GetState, SetState> pickle(GetState &&g, SetState &&s) {
2926 return {std::forward<GetState>(g), std::forward<SetState>(s)};
2927}
2928
2929PYBIND11_NAMESPACE_BEGIN(detail)
2930

Callers 2

wrapFunction · 0.85
TEST_SUBMODULEFunction · 0.85

Calls

no outgoing calls

Tested by 2

wrapFunction · 0.68
TEST_SUBMODULEFunction · 0.68