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

Function cpp_std

tests/pybind11_tests.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65const char *cpp_std() {
66 return
67#if defined(PYBIND11_CPP20)
68 "C++20";
69#elif defined(PYBIND11_CPP17)
70 "C++17";
71#elif defined(PYBIND11_CPP14)
72 "C++14";
73#else
74 "C++11";
75#endif
76}
77
78PYBIND11_MODULE(pybind11_tests, m, py::mod_gil_not_used()) {
79 m.doc() = "pybind11 test module";

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected