Home
last modified time | relevance | path

Searched refs:overload_cast_ (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_methods_and_attributes.cpp16 using overload_cast_ = pybind11::detail::overload_cast_impl<Args...>; typedef
251 .def("overloaded", overload_cast_<>()(&ExampleMandA::overloaded)) in TEST_SUBMODULE()
252 .def("overloaded", overload_cast_<int>()(&ExampleMandA::overloaded)) in TEST_SUBMODULE()
253 .def("overloaded", overload_cast_<int, float>()(&ExampleMandA::overloaded)) in TEST_SUBMODULE()
257 .def("overloaded_float", overload_cast_<float, float>()(&ExampleMandA::overloaded)) in TEST_SUBMODULE()
258 … .def("overloaded_const", overload_cast_<int >()(&ExampleMandA::overloaded, py::const_)) in TEST_SUBMODULE()
259 … .def("overloaded_const", overload_cast_<int, float>()(&ExampleMandA::overloaded, py::const_)) in TEST_SUBMODULE()
/external/python/pybind11/docs/
Dclasses.rst431 using overload_cast_ = pybind11::detail::overload_cast_impl<Args...>;
434 .def("set", overload_cast_<int>()(&Pet::set), "Set the pet's age")
435 .def("set", overload_cast_<const std::string &>()(&Pet::set), "Set the pet's name");