Home
last modified time | relevance | path

Searched refs:span (Results 1 – 25 of 139) sorted by relevance

123456

/llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.cons/
H A Dspan.fail.cpp27 std::span<T, extent> createImplicitSpan(std::span<T, otherExtent> s) { in createImplicitSpan()
34 std::span<const int> csp; in checkCV()
35 std::span< volatile int> vsp; in checkCV()
36 std::span<const volatile int> cvsp; in checkCV()
39 std::span<const int, 0> csp0; in checkCV()
40 std::span< volatile int, 0> vsp0; in checkCV()
41 std::span<const volatile int, 0> cvsp0; in checkCV()
98 std::span<int> sp; in main()
99 std::span<int, 0> sp0; in main()
101 …std::span<float> s1{sp}; // expected-error {{no matching constructor for initialization of 'std… in main()
[all …]
H A Dspan.pass.cpp28 std::span< int> sp; in checkCV()
30 std::span< volatile int> vsp; in checkCV()
33 std::span< int, 0> sp0; in checkCV()
35 std::span< volatile int, 0> vsp0; in checkCV()
72 std::span<T> s0{}; in testConstexprSpan()
73 std::span<T, 0> s1{}; in testConstexprSpan()
75 ASSERT_NOEXCEPT(std::span<T> {s0}); in testConstexprSpan()
76 ASSERT_NOEXCEPT(std::span<T, 0>{s1}); in testConstexprSpan()
77 ASSERT_NOEXCEPT(std::span<T> {s1}); in testConstexprSpan()
88 std::span<T> s0{}; in testRuntimeSpan()
[all …]
H A Darray.pass.cpp37 std::span< int> s1{ arr}; // a span< int> pointing at int. in checkCV()
82 ASSERT_NOEXCEPT(std::span<T>{val}); in testSpan()
83 ASSERT_NOEXCEPT(std::span<T, 2>{val}); in testSpan()
84 ASSERT_NOEXCEPT(std::span<const T>{val}); in testSpan()
85 ASSERT_NOEXCEPT(std::span<const T, 2>{val}); in testSpan()
87 std::span<T> s1 = val; in testSpan()
88 std::span<T, 2> s2 = val; in testSpan()
89 std::span<const T> s3 = val; in testSpan()
90 std::span<const T, 2> s4 = val; in testSpan()
96 std::span<const int> s5 = {{1,2}}; in testSpan()
[all …]
H A Drange.pass.cpp29 std::span<T, Extent> s{val}; in test_from_range()
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
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>);
69 static_assert(!std::is_constructible_v<std::span<char, 3>, BorrowedContiguousSizedRange>);
71 static_assert(std::is_convertible_v<BorrowedContiguousSizedRange&, std::span<const char>>);
72 static_assert(!std::is_convertible_v<BorrowedContiguousSizedRange&, std::span<const char, 3>>);
73 static_assert(!std::is_convertible_v<BorrowedContiguousSizedRange&, std::span<char>>);
[all …]
H A Darray.fail.cpp40 …std::span<int, 2> s1(arr); // expected-error {{no matching constructor for initialization of 'st… in main()
45 …std::span<float> s1(arr); // expected-error {{no matching constructor for initialization of '… in main()
46 …std::span<float, 3> s2(arr); // expected-error {{no matching constructor for initialization of '… in main()
51 …std::span< int> s1{ carr}; // expected-error {{no matching constructor for initia… in main()
52 …std::span< int> s2{ varr}; // expected-error {{no matching constructor for initia… in main()
53 …std::span< int> s3{cvarr}; // expected-error {{no matching constructor for initia… in main()
54 …std::span<const int> s4{ varr}; // expected-error {{no matching constructor for initia… in main()
55 …std::span<const int> s5{cvarr}; // expected-error {{no matching constructor for initia… in main()
62 …std::span< int,3> s1{ carr}; // expected-error {{no matching constructor for initia… in main()
63 …std::span< int,3> s2{ varr}; // expected-error {{no matching constructor for initia… in main()
[all …]
H A Dcopy.pass.cpp35 assert((doCopy(std::span<T> () ))); in testCV()
36 assert((doCopy(std::span<T,0>() ))); in testCV()
37 assert((doCopy(std::span<T> (&arr[0], 1)))); in testCV()
38 assert((doCopy(std::span<T,1>(&arr[0], 1)))); in testCV()
39 assert((doCopy(std::span<T> (&arr[0], 2)))); in testCV()
40 assert((doCopy(std::span<T,2>(&arr[0], 2)))); in testCV()
55 static_assert(doCopy(std::span<long>()), ""); in main()
56 static_assert(doCopy(std::span<double>()), ""); in main()
57 static_assert(doCopy(std::span<A>()), ""); in main()
60 assert(doCopy(std::span<std::string> () )); in main()
[all …]
H A Dstdarray.pass.cpp40 std::span< int> s1{ arr}; // a span< int> pointing at int. in checkCV()
45 std::span< int,3> s1{ arr}; // a span< int> pointing at int. in checkCV()
51 std::span<const int> s1{ arr}; // a span<const int> pointing at int. in checkCV()
69 ASSERT_NOEXCEPT(std::span<T>{val}); in testConstructorArray()
70 ASSERT_NOEXCEPT(std::span<T, 2>{val}); in testConstructorArray()
71 std::span<T> s1{val}; in testConstructorArray()
72 std::span<T, 2> s2{val}; in testConstructorArray()
80 ASSERT_NOEXCEPT(std::span<const T>{val}); in testConstructorConstArray()
81 ASSERT_NOEXCEPT(std::span<const T, 2>{val}); in testConstructorConstArray()
82 std::span<const T> s1{val}; in testConstructorConstArray()
[all …]
H A Ddefault.pass.cpp25 std::span< int> s1; in checkCV()
26 std::span<const int> s2; in checkCV()
27 std::span< volatile int> s3; in checkCV()
28 std::span<const volatile int> s4; in checkCV()
34 std::span< int,0> s1; in checkCV()
35 std::span<const int,0> s2; in checkCV()
36 std::span< volatile int,0> s3; in checkCV()
46 std::span<const T> s1; in testConstexprSpan()
47 std::span<const T, 0> s2; in testConstexprSpan()
58 std::span<const T> s1; in testRuntimeSpan()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.elem/
H A Ddata.pass.cpp81 testRuntimeSpan(std::span<int>(), nullptr); in main()
82 testRuntimeSpan(std::span<long>(), nullptr); in main()
83 testRuntimeSpan(std::span<double>(), nullptr); in main()
84 testRuntimeSpan(std::span<A>(), nullptr); in main()
87 testRuntimeSpan(std::span<int>(iArr2, 1), iArr2); in main()
88 testRuntimeSpan(std::span<int>(iArr2, 2), iArr2); in main()
89 testRuntimeSpan(std::span<int>(iArr2, 3), iArr2); in main()
90 testRuntimeSpan(std::span<int>(iArr2, 4), iArr2); in main()
98 testRuntimeSpan(std::span<int, 0>(), nullptr); in main()
99 testRuntimeSpan(std::span<long, 0>(), nullptr); in main()
[all …]
H A Dop_idx.pass.cpp80 testRuntimeSpan(std::span<int>(iArr2, 1), 0); in main()
82 testRuntimeSpan(std::span<int>(iArr2, 2), 0); in main()
83 testRuntimeSpan(std::span<int>(iArr2, 2), 1); in main()
85 testRuntimeSpan(std::span<int>(iArr2, 3), 0); in main()
86 testRuntimeSpan(std::span<int>(iArr2, 3), 1); in main()
87 testRuntimeSpan(std::span<int>(iArr2, 3), 2); in main()
89 testRuntimeSpan(std::span<int>(iArr2, 4), 0); in main()
90 testRuntimeSpan(std::span<int>(iArr2, 4), 1); in main()
91 testRuntimeSpan(std::span<int>(iArr2, 4), 2); in main()
92 testRuntimeSpan(std::span<int>(iArr2, 4), 3); in main()
[all …]
H A Dfront.pass.cpp64 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
65 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
66 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
67 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
70 testRuntimeSpan(std::span<int, 1>(iArr2, 1)); in main()
71 testRuntimeSpan(std::span<int, 2>(iArr2, 2)); in main()
72 testRuntimeSpan(std::span<int, 3>(iArr2, 3)); in main()
73 testRuntimeSpan(std::span<int, 4>(iArr2, 4)); in main()
76 testRuntimeSpan(std::span<std::string> (&s, 1)); in main()
77 testRuntimeSpan(std::span<std::string, 1>(&s, 1)); in main()
[all …]
H A Dback.pass.cpp63 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
64 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
65 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
66 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
69 testRuntimeSpan(std::span<int, 1>(iArr2, 1)); in main()
70 testRuntimeSpan(std::span<int, 2>(iArr2, 2)); in main()
71 testRuntimeSpan(std::span<int, 3>(iArr2, 3)); in main()
72 testRuntimeSpan(std::span<int, 4>(iArr2, 4)); in main()
75 testRuntimeSpan(std::span<std::string> (&s, 1)); in main()
76 testRuntimeSpan(std::span<std::string, 1>(&s, 1)); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.obs/
H A Dsize.pass.cpp62 testRuntimeSpan(std::span<int> (), 0); in main()
63 testRuntimeSpan(std::span<long> (), 0); in main()
64 testRuntimeSpan(std::span<double> (), 0); in main()
65 testRuntimeSpan(std::span<A> (), 0); in main()
66 testRuntimeSpan(std::span<std::string>(), 0); in main()
68 testRuntimeSpan(std::span<int, 0> (), 0); in main()
74 testRuntimeSpan(std::span<int>(iArr2, 1), 1); in main()
75 testRuntimeSpan(std::span<int>(iArr2, 2), 2); in main()
76 testRuntimeSpan(std::span<int>(iArr2, 3), 3); in main()
77 testRuntimeSpan(std::span<int>(iArr2, 4), 4); in main()
[all …]
H A Dsize_bytes.pass.cpp63 testRuntimeSpan(std::span<int> (), 0); in main()
64 testRuntimeSpan(std::span<long> (), 0); in main()
65 testRuntimeSpan(std::span<double> (), 0); in main()
66 testRuntimeSpan(std::span<A> (), 0); in main()
67 testRuntimeSpan(std::span<std::string>(), 0); in main()
69 testRuntimeSpan(std::span<int, 0> (), 0); in main()
75 testRuntimeSpan(std::span<int>(iArr2, 1), 1); in main()
76 testRuntimeSpan(std::span<int>(iArr2, 2), 2); in main()
77 testRuntimeSpan(std::span<int>(iArr2, 3), 3); in main()
78 testRuntimeSpan(std::span<int>(iArr2, 4), 4); in main()
[all …]
H A Dempty.pass.cpp50 assert( (std::span<int>().empty() )); in main()
51 assert( (std::span<long>().empty() )); in main()
52 assert( (std::span<double>().empty() )); in main()
53 assert( (std::span<A>().empty() )); in main()
54 assert( (std::span<std::string>().empty() )); in main()
56 assert( (std::span<int, 0>().empty() )); in main()
57 assert( (std::span<long, 0>().empty() )); in main()
58 assert( (std::span<double, 0>().empty() )); in main()
59 assert( (std::span<A, 0>().empty() )); in main()
60 assert( (std::span<std::string, 0>().empty())); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.iterators/
H A Dbegin.pass.cpp84 testRuntimeSpan(std::span<int> ()); in main()
85 testRuntimeSpan(std::span<long> ()); in main()
86 testRuntimeSpan(std::span<double> ()); in main()
87 testRuntimeSpan(std::span<A> ()); in main()
88 testRuntimeSpan(std::span<std::string>()); in main()
90 testRuntimeSpan(std::span<int, 0> ()); in main()
96 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
97 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
98 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
99 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
[all …]
H A Drbegin.pass.cpp85 testRuntimeSpan(std::span<int> ()); in main()
86 testRuntimeSpan(std::span<long> ()); in main()
87 testRuntimeSpan(std::span<double> ()); in main()
88 testRuntimeSpan(std::span<A> ()); in main()
89 testRuntimeSpan(std::span<std::string>()); in main()
91 testRuntimeSpan(std::span<int, 0> ()); in main()
97 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
98 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
99 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
100 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
[all …]
H A Drend.pass.cpp84 testRuntimeSpan(std::span<int> ()); in main()
85 testRuntimeSpan(std::span<long> ()); in main()
86 testRuntimeSpan(std::span<double> ()); in main()
87 testRuntimeSpan(std::span<A> ()); in main()
88 testRuntimeSpan(std::span<std::string>()); in main()
90 testRuntimeSpan(std::span<int, 0> ()); in main()
96 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
97 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
98 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
99 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
[all …]
H A Dend.pass.cpp88 testRuntimeSpan(std::span<int> ()); in main()
89 testRuntimeSpan(std::span<long> ()); in main()
90 testRuntimeSpan(std::span<double> ()); in main()
91 testRuntimeSpan(std::span<A> ()); in main()
92 testRuntimeSpan(std::span<std::string>()); in main()
94 testRuntimeSpan(std::span<int, 0> ()); in main()
100 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
101 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
102 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
103 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
[all …]
/llvm-project-15.0.7/libcxx/include/
H A Dspan21 // [views.span], class template span
77 // [span.sub], span subviews
89 // [span.obs], span observers
94 // [span.elem], span element access
100 // [span.iterators], span iterator support
115 span(T (&)[N]) -> span<T, N>;
118 span(array<T, N>&) -> span<T, N>;
121 span(const array<T, N>&) -> span<const T, N>;
394 // [span.iter], span iterator support
572 // [span.iter], span iterator support
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/containers/views/views.span/
H A Ddebug.iterator-indexing.pass.cpp27 std::span<Foo> const span(array, 3); in main() local
29 auto it = span.end(); in main()
33 auto it = span.end(); in main()
37 auto it = span.begin(); in main()
45 std::span<Foo, 3> const span(array, 3); in main() local
47 auto it = span.end(); in main()
51 auto it = span.end(); in main()
63 std::span<Foo> const span(array, 3); in main() local
65 auto it = span.rend(); in main()
69 auto it = span.rend(); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.objectrep/
H A Das_writable_bytes.pass.cpp49 testRuntimeSpan(std::span<int> ()); in main()
50 testRuntimeSpan(std::span<long> ()); in main()
51 testRuntimeSpan(std::span<double> ()); in main()
52 testRuntimeSpan(std::span<A> ()); in main()
53 testRuntimeSpan(std::span<std::string>()); in main()
55 testRuntimeSpan(std::span<int, 0> ()); in main()
61 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
62 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
63 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
64 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
[all …]
H A Das_bytes.pass.cpp49 testRuntimeSpan(std::span<int> ()); in main()
50 testRuntimeSpan(std::span<long> ()); in main()
51 testRuntimeSpan(std::span<double> ()); in main()
52 testRuntimeSpan(std::span<A> ()); in main()
53 testRuntimeSpan(std::span<std::string>()); in main()
55 testRuntimeSpan(std::span<int, 0> ()); in main()
61 testRuntimeSpan(std::span<int>(iArr2, 1)); in main()
62 testRuntimeSpan(std::span<int>(iArr2, 2)); in main()
63 testRuntimeSpan(std::span<int>(iArr2, 3)); in main()
64 testRuntimeSpan(std::span<int>(iArr2, 4)); in main()
[all …]
/llvm-project-15.0.7/llvm/docs/
H A DCoverageMappingFormat.rst92span style='background-color:#4A789C'> if (argc &gt; 1) </span><span style='background-color:#85C…
94span style='background-color:#85C1F5'> }</span><span style='background-color:#4A789C'> else </spa…
125span style='background-color:#4A789C'> #define MAX(x,y) </span><span style='background-color:#85C…
126span style='background-color:#4A789C'> return </span><span style='background-color:#7FCA9F'>MAX</
139span> if (<span style='background-color:#4A789C'>(x &gt; 1)</span> || <span style='background-col…
140 …<span> </span><span class='c1'>// Branch Region from 3:17 to 3:23</spa…
144 <span> }</span>
146 <span>}</span>
168span style='background-color:#4A789C'> #define PUT </span><span style='background-color:#85C1F5'>…
197 <span style='background-color:#85C1F5'> printf("%s\n", argv[1]); </span><span> </s…
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/containers/views/views.span/span.cons/
H A Drange.verify.cpp62 std::span<T, extent> createImplicitSpan(container c) { in createImplicitSpan()
71 …std::span<int> s1{IsAContainer<int>()}; // expected-error {{no matching constructor fo… in main()
72 …std::span<int> s3{std::vector<int>()}; // expected-error {{no matching constructor fo… in main()
90 …std::span<float> s1{c}; // expected-error {{no matching constructor for initialization of 'st… in main()
99 …std::span< int> s1{c}; // expected-error {{no matching constructor for initializa… in main()
100 …std::span< int> s2{v}; // expected-error {{no matching constructor for initializa… in main()
101 …std::span< int> s3{cv}; // expected-error {{no matching constructor for initializa… in main()
102 …std::span<const int> s4{v}; // expected-error {{no matching constructor for initializa… in main()
103 …std::span<const int> s5{cv}; // expected-error {{no matching constructor for initializa… in main()
104 …std::span< volatile int> s6{c}; // expected-error {{no matching constructor for initializa… in main()
[all …]

123456