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

Method cxx_std

pybind11/setup_helpers.py:161–169  ·  view source on GitHub ↗

The CXX standard level. If set, will add the required flags. If left at 0, it will trigger an automatic search when pybind11's build_ext is used. If None, will have no effect. Besides just the flags, this may add a macos-min 10.9 or 10.14 flag if MACOSX_DEPLOYMENT_T

(self)

Source from the content-addressed store, hash-verified

159
160 @property
161 def cxx_std(self) -> int:
162 """
163 The CXX standard level. If set, will add the required flags. If left at
164 0, it will trigger an automatic search when pybind11's build_ext is
165 used. If None, will have no effect. Besides just the flags, this may
166 add a macos-min 10.9 or 10.14 flag if MACOSX_DEPLOYMENT_TARGET is
167 unset.
168 """
169 return self._cxx_level
170
171 @cxx_std.setter
172 def cxx_std(self, level: int) -> None:

Callers

nothing calls this directly

Calls 6

_add_cflagsMethod · 0.95
_add_ldflagsMethod · 0.95
tupleClass · 0.85
strClass · 0.85
formatMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected