Lines Matching +full:set +full:- +full:array
2 // Use of this source code is governed by a BSD-style license that can be
6 // http://dev.chromium.org/developers/testing/no-compile-tests
10 #include <array>
11 #include <set>
31 // A span with static extent constructed from an array must match the size of
32 // the array.
34 int array[] = {1, 2, 3};
35 span<int, 1> span(array);
40 // A span with static extent constructed from std::array must match the size of
41 // the array.
43 std::array<int, 3> array = {1, 2, 3};
44 span<int, 2> span(array);
49 // A span with static extent constructed from std::array must match the size of
50 // the array.
52 const std::array<int, 3> array = {1, 2, 3};
53 span<const int, 2> span(array);
61 std::array<int, 3> array = {1, 2, 3};
62 span<int, 3> span3(array);
107 // A std::set() should not satisfy the requirements for conversion to a span.
109 std::set<int> set;
110 span<int> span(set);
117 std::array<int, 3> array = {1, 2, 3};
118 span<int, 3> span(array);
126 std::array<int, 3> array = {1, 2, 3};
127 span<int, 3> span(array);
135 std::array<int, 3> array = {1, 2, 3};
136 span<int, 3> span(array);
140 …NT_DISALLOWED) // [r"fatal error: static_assert failed \"Count must not exceed Extent - Offset\""]
144 std::array<int, 3> array = {1, 2, 3};
145 span<int, 3> span(array);
159 // A std::set() should not satisfy the requirements for conversion to a span.
161 std::set<int> set;
162 auto span = make_span(set);