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

Function custom_transform_int

tests/test_callbacks.cpp:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20double custom_transform_double(double value) { return value * 3; }
21int custom_transform_int(int value) { return value; }
22
23// Originally derived from
24// https://github.com/scikit-hep/boost-histogram/blob/460ef90905d6a8a9e6dd3beddfe7b4b49b364579/include/bh_python/transform.hpp#L68-L85

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected