Searched refs:arithmetic (Results 1 - 3 of 3) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_enum.cpp19 py::enum_<UnscopedEnum>(m, "UnscopedEnum", py::arithmetic(), "An unscoped enumeration")
30 py::enum_<ScopedEnum>(m, "ScopedEnum", py::arithmetic())
44 py::enum_<Flags>(m, "Flags", py::arithmetic())
/gem5/ext/pybind11/include/pybind11/
H A Dattr.h70 /// Annotation to mark enums as an arithmetic type
71 struct arithmetic { }; struct
434 /// Process an 'arithmetic' attribute for enums (does nothing here)
436 struct process_attribute<arithmetic> : process_attribute_default<arithmetic> {};
H A Dpybind11.h1560 constexpr bool is_arithmetic = detail::any_of<std::is_same<arithmetic, Extra>...>::value;

Completed in 16 milliseconds