Home
last modified time | relevance | path

Searched refs:holder_type (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
DLibCxxOptional.cpp70 CompilerType holder_type = val_sp->GetCompilerType(); in GetChildAtIndex() local
72 if (!holder_type) in GetChildAtIndex()
DLibCxxTuple.cpp69 CompilerType holder_type = in GetChildAtIndex() local
71 if (!holder_type) in GetChildAtIndex()
/external/python/pybind11/include/pybind11/
Dcast.h1520 template <typename type, typename holder_type>
1532 return base::template load_impl<copyable_holder_caster<type, holder_type>>(src, convert);
1539 explicit operator holder_type*() { return std::addressof(holder); }
1540 explicit operator holder_type&() { return holder; }
1542 static handle cast(const holder_type &src, return_value_policy, handle) {
1543 const auto *ptr = holder_helper<holder_type>::get(src);
1557 holder = v_h.template holder<holder_type>();
1564 "of type '" + type_id<holder_type>() + "''");
1569 …template <typename T = holder_type, detail::enable_if_t<!std::is_constructible<T, const T &, type*…
1572 …template <typename T = holder_type, detail::enable_if_t<std::is_constructible<T, const T &, type*>…
[all …]
Dpybind11.h1255 using holder_type = detail::exactly_one_t<is_holder, std::unique_ptr<type>, options...>;
1283 record.holder_size = sizeof(holder_type);
1286 record.default_holder = detail::is_instantiation<std::unique_ptr, holder_type>::value;
1507 const holder_type * /* unused */, const std::enable_shared_from_this<T> * /* dummy */) {
1509 auto sh = std::dynamic_pointer_cast<typename holder_type::element_type>(
1512 new (std::addressof(v_h.holder<holder_type>())) holder_type(std::move(sh));
1518 new (std::addressof(v_h.holder<holder_type>())) holder_type(v_h.value_ptr<type>());
1524 const holder_type *holder_ptr, std::true_type /*is_copy_constructible*/) {
1525 …new (std::addressof(v_h.holder<holder_type>())) holder_type(*reinterpret_cast<const holder_type *>…
1529 const holder_type *holder_ptr, std::false_type /*is_copy_constructible*/) {
[all …]
Dstl_bind.h441 template <typename Vector, typename holder_type = std::unique_ptr<Vector>, typename... Args>
442 class_<Vector, holder_type> bind_vector(handle scope, std::string const &name, Args&&... args) {
443 using Class_ = class_<Vector, holder_type>;
602 template <typename Map, typename holder_type = std::unique_ptr<Map>, typename... Args>
603 class_<Map, holder_type> bind_map(handle scope, const std::string &name, Args&&... args) {
606 using Class_ = class_<Map, holder_type>;
/external/python/pybind11/include/pybind11/detail/
Dinit.h42 template <typename Class> using Holder = typename Class::holder_type;
/external/python/pybind11/tests/
Dtest_class.cpp506 #define CHECK_HOLDER(N, TYPE) static_assert(std::is_same<typename DoesntBreak##N::holder_type, std:…