| /llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.cons/ |
| H A D | range.pass.cpp | 44 static_assert(!std::is_constructible_v<std::span<int>, std::vector<float>&>); // wrong type 45 static_assert(!std::is_constructible_v<std::span<int, 3>, std::vector<float>&>); // wrong type 47 static_assert(std::is_constructible_v<std::span<int>, std::vector<int>&>); // non-bo… 48 static_assert(std::is_constructible_v<std::span<int, 3>, std::vector<int>&>); // non-bo… 49 static_assert(std::is_constructible_v<std::span<const int>, std::vector<int>&>); // non-bo… 50 static_assert(std::is_constructible_v<std::span<const int, 3>, std::vector<int>&>); // non-bo… 55 static_assert(std::is_constructible_v<std::span<const int>, std::vector<int>>); // non-bo… 66 static_assert(std::is_constructible_v<std::span<const char>, BorrowedContiguousSizedRange>); 67 static_assert(std::is_constructible_v<std::span<const char, 3>, BorrowedContiguousSizedRange>); 68 static_assert(!std::is_constructible_v<std::span<char>, BorrowedContiguousSizedRange>); [all …]
|
| H A D | iterator_len.pass.cpp | 26 static_assert(std::is_constructible_v<std::span<int, Extent>, int*, size_t>); in test_constructibility() 27 static_assert(!std::is_constructible_v<std::span<int, Extent>, const int*, size_t>); in test_constructibility() 28 static_assert(std::is_constructible_v<std::span<const int, Extent>, int*, size_t>); in test_constructibility() 29 static_assert(std::is_constructible_v<std::span<const int, Extent>, const int*, size_t>); in test_constructibility() 30 static_assert(!std::is_constructible_v<std::span<int, Extent>, volatile int*, size_t>); in test_constructibility() 31 static_assert(!std::is_constructible_v<std::span<int, Extent>, const volatile int*, size_t>); in test_constructibility() 32 static_assert(!std::is_constructible_v<std::span<const int, Extent>, volatile int*, size_t>); in test_constructibility() 33 …static_assert(!std::is_constructible_v<std::span<const int, Extent>, const volatile int*, size_t>); in test_constructibility() 34 static_assert(!std::is_constructible_v<std::span<volatile int, Extent>, const int*, size_t>); in test_constructibility() 35 …static_assert(!std::is_constructible_v<std::span<volatile int, Extent>, const volatile int*, size_… in test_constructibility() [all …]
|
| H A D | iterator_sentinel.pass.cpp | 35 static_assert(std::is_constructible_v<std::span<int, Extent>, int*, int*>); in test_constructibility() 36 static_assert(!std::is_constructible_v<std::span<int, Extent>, const int*, const int*>); in test_constructibility() 37 static_assert(!std::is_constructible_v<std::span<int, Extent>, volatile int*, volatile int*>); in test_constructibility() 38 static_assert(std::is_constructible_v<std::span<const int, Extent>, int*, int*>); in test_constructibility() 39 static_assert(std::is_constructible_v<std::span<const int, Extent>, const int*, const int*>); in test_constructibility() 40 …static_assert(!std::is_constructible_v<std::span<const int, Extent>, volatile int*, volatile int*>… in test_constructibility() 41 static_assert(std::is_constructible_v<std::span<volatile int, Extent>, int*, int*>); in test_constructibility() 42 static_assert(!std::is_constructible_v<std::span<volatile int, Extent>, const int*, const int*>); in test_constructibility() 43 …static_assert(std::is_constructible_v<std::span<volatile int, Extent>, volatile int*, volatile int… in test_constructibility() 44 static_assert(!std::is_constructible_v<std::span<int, Extent>, int*, float*>); // types wrong in test_constructibility()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.cons/ |
| H A D | from_range.pass.cpp | 63 static_assert(!std::is_constructible_v<std::string_view, in test() 93 static_assert(std::is_constructible_v<std::string_view, DeletedConversionOperator>); in test() 94 static_assert(std::is_constructible_v<std::string_view, const DeletedConversionOperator>); in test() 95 static_assert(std::is_constructible_v<std::string_view, DeletedConstConversionOperator>); in test() 114 static_assert(std::is_constructible_v<std::string_view, std::vector<char>&>); 115 static_assert(std::is_constructible_v<std::string_view, const std::vector<char>&>); 116 static_assert(std::is_constructible_v<std::string_view, std::vector<char>&&>); 117 static_assert(std::is_constructible_v<std::string_view, const std::vector<char>&&>); 122 static_assert(!std::is_constructible_v<std::string_view, SizedButNotContiguousRange>); 127 static_assert(!std::is_constructible_v<std::string_view, ContiguousButNotSizedRange>); [all …]
|
| H A D | from_iterator_sentinel.pass.cpp | 82 static_assert( std::is_constructible_v<std::string_view, const char*, char*>); 83 static_assert( std::is_constructible_v<std::string_view, char*, const char*>); 84 static_assert(!std::is_constructible_v<std::string_view, char*, void*>); // not a sen… 85 static_assert(!std::is_constructible_v<std::string_view, signed char*, signed char*>); // wrong cha… 86 static_assert(!std::is_constructible_v<std::string_view, random_access_iterator<char*>, random_acce… 87 static_assert( std::is_constructible_v<std::string_view, contiguous_iterator<char*>, contiguous_ite…
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.all/range.owning.view/ |
| H A D | constructor.pass.cpp | 56 static_assert(std::is_constructible_v<OwningView>); in test() 63 static_assert(!std::is_constructible_v<OwningView, int>); in test() 64 static_assert(!std::is_constructible_v<OwningView, DefaultConstructible&>); in test() 65 static_assert(std::is_constructible_v<OwningView, DefaultConstructible&&>); in test() 79 static_assert(!std::is_constructible_v<OwningView>); in test() 86 static_assert(!std::is_constructible_v<OwningView, int>); in test() 87 static_assert(!std::is_constructible_v<OwningView, NotDefaultConstructible&>); in test() 98 static_assert(!std::is_constructible_v<OwningView>); in test() 105 static_assert(!std::is_constructible_v<OwningView, int>); in test() 106 static_assert(!std::is_constructible_v<OwningView, MoveChecker&>); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.utility/range.subrange/ |
| H A D | ctor.begin_end_size.pass.cpp | 28 static_assert( std::is_constructible_v<SizedSentinelForwardSubrange, ConditionallyConvertibleIter, … 29 static_assert(!std::is_constructible_v<SizedSentinelForwardSubrange, Empty, ConditionallyConvertibl… 30 static_assert( std::is_constructible_v<ConvertibleSizedSentinelForwardSubrange, ConvertibleSizedSen… 31 static_assert( std::is_constructible_v<SizedSentinelForwardSubrange, ConditionallyConvertibleIter, … 32 static_assert(!std::is_constructible_v<SizedIntPtrSubrange, long*, int*, size_t>); // 4. 33 static_assert( std::is_constructible_v<SizedIntPtrSubrange, int*, int*, size_t>); // 5.
|
| H A D | ctor.range.pass.cpp | 21 static_assert( std::is_constructible_v<ForwardSubrange, ForwardBorrowedRange>); // Default case. 22 static_assert(!std::is_constructible_v<ForwardSubrange, ForwardRange>); // Not borrowed. 24 static_assert( std::is_constructible_v<ConvertibleForwardSubrange, ConvertibleForwardBorrowedRange>… 26 static_assert( std::is_constructible_v<DifferentSentinelSubrange, ForwardBorrowedRangeDifferentSent… 27 static_assert( std::is_constructible_v<DifferentSentinelWithSizeMemberSubrange, DifferentSentinelWi…
|
| H A D | ctor.begin_end.pass.cpp | 29 static_assert( std::is_constructible_v<ForwardSubrange, ForwardIter, ForwardIter>); // Default case. 30 static_assert(!std::is_constructible_v<ForwardSubrange, Empty, ForwardIter>); // 1. 31 static_assert( std::is_constructible_v<ConvertibleForwardSubrange, ConvertibleForwardIter, int*>); … 32 static_assert( std::is_constructible_v<ForwardSubrange, ForwardIter, ForwardIter>); // 3. (Same as …
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
| H A D | const_move_pair.pass.cpp | 30 static_assert(std::is_constructible_v<std::tuple<ConstMove, int>, const std::pair<ConstMove, int>&&… 32 static_assert(!std::is_constructible_v<std::tuple<ConstMove>, const std::pair<ConstMove, int>&&>); 34 static_assert(!std::is_constructible_v<std::tuple<ConstMove, int, int>, const std::pair<ConstMove, … 39 static_assert(std::is_constructible_v<std::tuple<int, int>, const std::pair<int, int>&&>); 41 static_assert(!std::is_constructible_v<std::tuple<NoConstructorFromInt, int>, const std::pair<int, … 43 static_assert(!std::is_constructible_v<std::tuple<int, NoConstructorFromInt>, const std::pair<int, … 46 …!std::is_constructible_v< std::tuple<NoConstructorFromInt, NoConstructorFromInt>, const std::pair<…
|
| H A D | non_const_pair.pass.cpp | 30 static_assert(std::is_constructible_v<std::tuple<MutableCopy, int>, std::pair<MutableCopy, int>&>); 32 static_assert(!std::is_constructible_v<std::tuple<MutableCopy>, std::pair<MutableCopy, int>&>); 34 static_assert(!std::is_constructible_v<std::tuple<MutableCopy, int, int>, std::pair<MutableCopy, in… 39 static_assert(std::is_constructible_v<std::tuple<int, int>, std::pair<int, int>&>); 41 static_assert(!std::is_constructible_v<std::tuple<NoConstructorFromInt, int>, std::pair<int, int>&>… 43 static_assert(!std::is_constructible_v<std::tuple<int, NoConstructorFromInt>, std::pair<int, int>&>… 45 static_assert(!std::is_constructible_v< std::tuple<NoConstructorFromInt, NoConstructorFromInt>, std…
|
| H A D | alloc_non_const_pair.pass.cpp | 33 static_assert(std::is_constructible_v<std::tuple<MutableCopy, int>, std::allocator_arg_t, test_allo… 36 static_assert(!std::is_constructible_v< std::tuple<MutableCopy>, std::allocator_arg_t, test_allocat… 39 static_assert(!std::is_constructible_v< std::tuple<MutableCopy, int, int>, std::allocator_arg_t, te… 46 …std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, test_allocator<int>, std::pair… 48 static_assert(!std::is_constructible_v< std::tuple<NoConstructorFromInt, int>, std::allocator_arg_t, 51 static_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, 54 static_assert(!std::is_constructible_v< std::tuple<NoConstructorFromInt, NoConstructorFromInt>, std…
|
| H A D | alloc_const_move_pair.pass.cpp | 33 static_assert(std::is_constructible_v<std::tuple<ConstMove, int>, std::allocator_arg_t, test_alloca… 36 static_assert(!std::is_constructible_v< std::tuple<ConstMove>, std::allocator_arg_t, test_allocator… 39 static_assert(!std::is_constructible_v< std::tuple<ConstMove, int, int>, std::allocator_arg_t, test… 45 static_assert(std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, test_allocator<in… 48 static_assert(!std::is_constructible_v< std::tuple<NoConstructorFromInt, int>, std::allocator_arg_t, 51 static_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, 54 static_assert(!std::is_constructible_v< std::tuple<NoConstructorFromInt, NoConstructorFromInt>, std…
|
| H A D | convert_types.h | 85 requires(std::is_constructible_v<T, T&>) 88 requires(std::is_constructible_v<T, const T&> && !std::is_const_v<T>) 91 requires(std::is_constructible_v<T, T &&>) 94 requires(std::is_constructible_v<T, const T &&> && !std::is_const_v<T>) 98 requires std::is_constructible_v<ConvertibleFrom, U&&> 115 requires(std::is_constructible_v<T, T&>) 118 requires(std::is_constructible_v<T, const T&> && !std::is_const_v<T>) 121 requires(std::is_constructible_v<T, T &&>) 124 requires(std::is_constructible_v<T, const T &&> && !std::is_const_v<T>) 128 requires std::is_constructible_v<ExplicitConstructibleFrom, U&&> [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/queue/queue.cons/ |
| H A D | ctor_iterators.pass.cpp | 22 static_assert(!std::is_constructible_v<std::queue<int>, int, int, std::allocator<int>>); 23 static_assert(!std::is_constructible_v<std::queue<int>, int*, int*, int>); 24 static_assert( std::is_constructible_v<std::queue<int, std::deque<int, test_allocator<int>>>, int*,… 25 static_assert(!std::is_constructible_v<std::queue<int, std::deque<int, test_allocator<int>>>, int*,… 30 static_assert( std::is_constructible_v<std::queue<int, std::deque<int, alloc>>, int*, int*, test_al…
|
| /llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/stack/stack.cons/ |
| H A D | ctor_iterators.pass.cpp | 21 static_assert(!std::is_constructible_v<std::stack<int>, int, int, std::allocator<int>>); 22 static_assert(!std::is_constructible_v<std::stack<int>, int*, int*, int>); 23 static_assert( std::is_constructible_v<std::stack<int, std::deque<int, test_allocator<int>>>, int*,… 24 static_assert(!std::is_constructible_v<std::stack<int, std::deque<int, test_allocator<int>>>, int*,… 29 static_assert( std::is_constructible_v<std::stack<int, std::deque<int, alloc>>, int*, int*, test_al…
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/algorithms.results/ |
| H A D | min_max_result.pass.cpp | 25 static_assert(!std::is_constructible_v<std::ranges::min_max_result<A>, std::ranges::min_max_result<… 31 static_assert(std::is_constructible_v<std::ranges::min_max_result<B>, std::ranges::min_max_result<i… 32 static_assert(std::is_constructible_v<std::ranges::min_max_result<B>, std::ranges::min_max_result<i… 33 static_assert(std::is_constructible_v<std::ranges::min_max_result<B>, const std::ranges::min_max_re… 34 static_assert(std::is_constructible_v<std::ranges::min_max_result<B>, const std::ranges::min_max_re… 39 static_assert(!std::is_constructible_v<std::ranges::min_max_result<C>, std::ranges::min_max_result<…
|
| H A D | in_found_result.pass.cpp | 25 static_assert(!std::is_constructible_v<std::ranges::in_found_result<A>, std::ranges::in_found_resul… 32 static_assert(std::is_constructible_v<std::ranges::in_found_result<B>, std::ranges::in_found_result… 33 static_assert(std::is_constructible_v<std::ranges::in_found_result<B>, std::ranges::in_found_result… 34 static_assert(std::is_constructible_v<std::ranges::in_found_result<B>, const std::ranges::in_found_… 35 static_assert(std::is_constructible_v<std::ranges::in_found_result<B>, const std::ranges::in_found_… 40 static_assert(!std::is_constructible_v<std::ranges::in_found_result<C>, std::ranges::in_found_resul…
|
| H A D | in_in_result.pass.cpp | 25 static_assert(!std::is_constructible_v<std::ranges::in_in_result<A, A>, std::ranges::in_in_result<i… 31 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, std::ranges::in_in_result<in… 32 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, std::ranges::in_in_result<in… 33 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, const std::ranges::in_in_res… 34 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, const std::ranges::in_in_res… 39 static_assert(!std::is_constructible_v<std::ranges::in_in_result<C, C>, std::ranges::in_in_result<i…
|
| H A D | in_out_result.pass.cpp | 25 static_assert(!std::is_constructible_v<std::ranges::in_out_result<A, A>, std::ranges::in_out_result… 31 static_assert(std::is_constructible_v<std::ranges::in_out_result<B, B>, std::ranges::in_out_result<… 32 static_assert(std::is_constructible_v<std::ranges::in_out_result<B, B>, std::ranges::in_out_result<… 33 static_assert(std::is_constructible_v<std::ranges::in_out_result<B, B>, const std::ranges::in_out_r… 34 static_assert(std::is_constructible_v<std::ranges::in_out_result<B, B>, const std::ranges::in_out_r… 39 static_assert(!std::is_constructible_v<std::ranges::in_out_result<C, C>, std::ranges::in_out_result…
|
| H A D | in_fun_result.pass.cpp | 26 static_assert(!std::is_constructible_v<std::ranges::in_fun_result<A, A>, std::ranges::in_fun_result… 32 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, std::ranges::in_fun_result<… 33 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, std::ranges::in_fun_result<… 34 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, const std::ranges::in_fun_r… 35 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, const std::ranges::in_fun_r… 40 static_assert(!std::is_constructible_v<std::ranges::in_fun_result<C, C>, std::ranges::in_fun_result…
|
| H A D | in_in_out_result.pass.cpp | 25 static_assert(!std::is_constructible_v<std::ranges::in_in_out_result<A, A, A>, 32 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, std::ranges::in_in_ou… 33 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, std::ranges::in_in_ou… 34 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, const std::ranges::in… 35 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, const std::ranges::in… 40 static_assert(!std::is_constructible_v<std::ranges::in_in_out_result<C, C, C>, std::ranges::in_in_o…
|
| H A D | in_out_out_result.pass.cpp | 25 static_assert(!std::is_constructible_v<std::ranges::in_out_out_result<A, A, A>, std::ranges::in_out… 31 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, std::ranges::in_out_… 32 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, std::ranges::in_out_… 33 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, const std::ranges::i… 34 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, const std::ranges::i… 39 static_assert(!std::is_constructible_v<std::ranges::in_out_out_result<C, C, C>, std::ranges::in_out…
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/ |
| H A D | is_constructible.pass.cpp | 73 static_assert( std::is_constructible_v<T>, ""); in test_is_constructible() 82 static_assert(( std::is_constructible_v<T, A0>), ""); in test_is_constructible() 91 static_assert(( std::is_constructible_v<T, A0, A1>), ""); in test_is_constructible() 100 static_assert(( std::is_constructible_v<T, A0, A1, A2>), ""); in test_is_constructible() 109 static_assert((!std::is_constructible_v<T>), ""); in test_is_not_constructible() 118 static_assert((!std::is_constructible_v<T, A0>), ""); in test_is_not_constructible()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.adaptors/range.copy.wrap/ |
| H A D | ctor.in_place.pass.cpp | 37 static_assert(!std::is_constructible_v<Box, std::in_place_t, UnknownType>); in test() 46 static_assert(!std::is_constructible_v<Box, std::in_place_t, UnknownType>); in test() 55 static_assert(!std::is_constructible_v<Box, std::in_place_t, UnknownType>); in test()
|