Searched refs:has_alias (Results 1 - 5 of 5) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_factory_constructors.py144 assert not a.has_alias()
147 assert b.has_alias()
150 assert c.has_alias()
153 assert d.has_alias()
156 assert not e.has_alias()
159 assert f.has_alias()
181 assert z.has_alias()
186 assert y.has_alias()
191 assert x.has_alias()
221 assert not a1.has_alias()
[all...]
H A Dtest_factory_constructors.cpp79 bool has_alias() { return alias; } function in class:TestFactory6
104 bool has_alias() { return alias; } function in class:TestFactory7
220 .def("has_alias", &TestFactory6::has_alias)
255 .def("has_alias", &TestFactory7::has_alias)
H A Dtest_class.cpp386 #define CHECK_ALIAS(N) static_assert(DoesntBreak##N::has_alias && std::is_same<typename DoesntBreak##N::type_alias, BreaksTramp<N>>::value, \
388 #define CHECK_NOALIAS(N) static_assert(!DoesntBreak##N::has_alias && std::is_void<typename DoesntBreak##N::type_alias>::value, \
/gem5/ext/pybind11/include/pybind11/detail/
H A Dinit.h47 template <typename Class, enable_if_t<Class::has_alias, int> = 0>
98 if (Class::has_alias && need_alias && !is_alias<Class>(ptr)) {
123 template <typename Class, enable_if_t<Class::has_alias, int> = 0>
136 if (Class::has_alias && need_alias && !is_alias<Class>(ptr))
152 if (Class::has_alias && need_alias)
171 template <typename Class, typename... Extra, enable_if_t<!Class::has_alias, int> = 0>
179 enable_if_t<Class::has_alias &&
191 enable_if_t<Class::has_alias &&
203 enable_if_t<Class::has_alias && std::is_constructible<Alias<Class>, Args...>::value, int> = 0>
264 static_assert(Class::has_alias, "Th
[all...]
/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h1049 constexpr static bool has_alias = !std::is_void<type_alias>::value; member in class:cpp_function::class_
1055 static_assert(!has_alias || std::is_polymorphic<type>::value,
1076 record.type_size = sizeof(conditional_t<has_alias, type_alias, type>);
1077 record.type_align = alignof(conditional_t<has_alias, type_alias, type>&);
1093 if (has_alias) {

Completed in 20 milliseconds