Searched refs:overload_cast (Results 1 - 3 of 3) sorted by relevance
/gem5/ext/pybind11/tests/ |
H A D | test_constants_and_functions.cpp | 90 m.def("test_function", py::overload_cast<>(&test_function4)); 91 m.def("test_function", py::overload_cast<char *>(&test_function4)); 92 m.def("test_function", py::overload_cast<int, float>(&test_function4)); 93 m.def("test_function", py::overload_cast<float, int>(&test_function4));
|
H A D | test_methods_and_attributes.cpp | 237 .def("overloaded", py::overload_cast<>(&ExampleMandA::overloaded)) 238 .def("overloaded", py::overload_cast<int>(&ExampleMandA::overloaded)) 239 .def("overloaded", py::overload_cast<int, float>(&ExampleMandA::overloaded)) 240 .def("overloaded", py::overload_cast<float, int>(&ExampleMandA::overloaded)) 241 .def("overloaded", py::overload_cast<int, int>(&ExampleMandA::overloaded)) 242 .def("overloaded", py::overload_cast<float, float>(&ExampleMandA::overloaded)) 243 .def("overloaded_float", py::overload_cast<float, float>(&ExampleMandA::overloaded)) 244 .def("overloaded_const", py::overload_cast<int >(&ExampleMandA::overloaded, py::const_)) 245 .def("overloaded_const", py::overload_cast<int, float>(&ExampleMandA::overloaded, py::const_)) 246 .def("overloaded_const", py::overload_cast<floa [all...] |
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | common.h | 742 // overload_cast requires variable templates: C++14 747 /// - sweet: overload_cast<Arg0, Arg1, Arg2>(&Class::func) 749 static constexpr detail::overload_cast_impl<Args...> overload_cast = {}; member in struct:overload_cast_impl 753 /// Const member function selector for overload_cast 755 /// - sweet: overload_cast<Arg>(&Class::func, const_) 758 #if !defined(PYBIND11_CPP14) // no overload_cast: providing something that static_assert-fails: 759 template <typename... Args> struct overload_cast { struct in struct:overload_cast_impl 761 "pybind11::overload_cast<...> requires compiling in C++14 mode"); 763 #endif // overload_cast
|
Completed in 7 milliseconds