Home
last modified time | relevance | path

Searched refs:dynamic_extent (Results 1 – 25 of 26) sorted by relevance

12

/external/pigweed/pw_span/public/pw_span/internal/
Dspan.h58 constexpr size_t dynamic_extent = std::numeric_limits<size_t>::max();
60 template <typename T, size_t Extent = dynamic_extent>
66 struct ExtentImpl : std::integral_constant<size_t, dynamic_extent> {};
115 std::enable_if_t<(ToExtent == dynamic_extent || ToExtent == FromExtent) &&
121 std::enable_if_t<(Extent == dynamic_extent ||
143 Extent == dynamic_extent>;
158 struct ExtentStorage<dynamic_extent> {
257 static_assert(Extent == dynamic_extent || Extent == 0, "Invalid Extent");
262 _PW_SPAN_ASSERT(Extent == dynamic_extent || Extent == size);
330 _PW_SPAN_ASSERT(Extent != dynamic_extent || Count <= size());
[all …]
/external/libchrome/base/containers/
Dspan.h22 constexpr size_t dynamic_extent = static_cast<size_t>(-1); variable
24 template <typename T, size_t Extent = dynamic_extent>
64 std::enable_if_t<(ToExtent == dynamic_extent || ToExtent == FromExtent) &&
70 std::enable_if_t<(Extent == dynamic_extent || Extent == N) &&
186 static_assert(Extent == dynamic_extent || Extent == 0, "Invalid Extent");
190 CHECK(Extent == dynamic_extent || Extent == size);
253 static_assert(Extent == dynamic_extent || Count <= Extent,
255 CHECK(Extent != dynamic_extent || Count <= size());
261 static_assert(Extent == dynamic_extent || Count <= Extent,
263 CHECK(Extent != dynamic_extent || Count <= size());
[all …]
Dspan_unittest.cc1067 static_assert(decltype(made_span)::extent == dynamic_extent, ""); in TEST()
1080 static_assert(decltype(made_span)::extent == dynamic_extent, ""); in TEST()
1101 static_assert(decltype(make_span(vector))::extent == dynamic_extent, ""); in TEST()
1108 static_assert(decltype(make_span(vector))::extent == dynamic_extent, ""); in TEST()
Dspan_unittest.nc24 // A default constructed span must have an extent of 0 or dynamic_extent.
/external/llvm-project/libcxx/include/
Dspan19 inline constexpr size_t dynamic_extent = numeric_limits<size_t>::max();
22 template <class ElementType, size_t Extent = dynamic_extent>
27 span<const byte, ((Extent == dynamic_extent) ? dynamic_extent :
31 span< byte, ((Extent == dynamic_extent) ? dynamic_extent :
36 template <class ElementType, size_t Extent = dynamic_extent>
54 constexpr explicit(Extent != dynamic_extent) span(pointer ptr, size_type count);
55 constexpr explicit(Extent != dynamic_extent) span(pointer firstElem, pointer lastElem);
63 constexpr explicit(Extent != dynamic_extent) span(Container& cont);
65 constexpr explicit(Extent != dynamic_extent) span(const Container& cont);
68 …constexpr explicit(Extent != dynamic_extent) span(const span<OtherElementType, OtherExtent>& s) no…
[all …]
/external/libcxx/include/
Dspan20 inline constexpr ptrdiff_t dynamic_extent = -1;
23 template <class ElementType, ptrdiff_t Extent = dynamic_extent>
28 span<const byte, ((Extent == dynamic_extent) ? dynamic_extent :
32 span< byte, ((Extent == dynamic_extent) ? dynamic_extent :
37 template <class ElementType, ptrdiff_t Extent = dynamic_extent>
78 template <ptrdiff_t Offset, ptrdiff_t Count = dynamic_extent>
81 constexpr span<element_type, dynamic_extent> first(index_type count) const;
82 constexpr span<element_type, dynamic_extent> last(index_type count) const;
83 …constexpr span<element_type, dynamic_extent> subspan(index_type offset, index_type count = dynamic…
144 inline constexpr ptrdiff_t dynamic_extent = -1;
[all …]
/external/libcxx/test/std/containers/views/span.sub/
Dsubspan.pass.cpp41 …static_assert(S1::extent == (Span::extent == std::dynamic_extent ? std::dynamic_extent : Count), "… in testConstexprSpan()
42 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
60 …static_assert(S1::extent == (Span::extent == std::dynamic_extent ? std::dynamic_extent : Span::ext… in testConstexprSpan()
61 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
80 …static_assert(S1::extent == (Span::extent == std::dynamic_extent ? std::dynamic_extent : Count), "… in testRuntimeSpan()
81 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
99 …static_assert(S1::extent == (Span::extent == std::dynamic_extent ? std::dynamic_extent : Span::ext… in testRuntimeSpan()
100 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
Dlast.pass.cpp41 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
61 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
Dfirst.pass.cpp41 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
61 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
/external/llvm-project/libcxx/test/std/containers/views/
Dtypes.pass.cpp74 testSpan<std::span< T>, T, std::dynamic_extent>(); in test()
75 testSpan<std::span<const T>, const T, std::dynamic_extent>(); in test()
76 testSpan<std::span< volatile T>, volatile T, std::dynamic_extent>(); in test()
77 testSpan<std::span<const volatile T>, const volatile T, std::dynamic_extent>(); in test()
/external/llvm-project/libcxx/test/std/containers/views/span.sub/
Dsubspan.pass.cpp41 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
59 …static_assert(S1::extent == (Span::extent == std::dynamic_extent ? std::dynamic_extent : Span::ext… in testConstexprSpan()
60 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
80 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
98 …static_assert(S1::extent == (Span::extent == std::dynamic_extent ? std::dynamic_extent : Span::ext… in testRuntimeSpan()
99 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
Dfirst.pass.cpp40 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
60 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
Dlast.pass.cpp40 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
60 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
/external/pigweed/pw_kvs/
Dconverts_to_span_test.cc29 using std::dynamic_extent;
111 static_assert(decltype(made_span)::extent == dynamic_extent, ""); in TEST()
127 static_assert(decltype(made_span)::extent == dynamic_extent, ""); in TEST()
163 static_assert(decltype(made_span)::extent == dynamic_extent, ""); in TEST()
191 static_assert(decltype(made_span)::extent == dynamic_extent, ""); in TEST()
235 static_assert(decltype(made_span)::extent == dynamic_extent, ""); in TEST()
/external/llvm-project/parallel-libs/acxxel/
Dspan.h21 static constexpr std::ptrdiff_t dynamic_extent = -1; // NOLINT variable
160 index_type Count = dynamic_extent) const {
163 (Count == dynamic_extent || (Count >= 0 && Offset + Count <= size()));
167 data() + Offset, Count == dynamic_extent ? size() - Offset : Count);
Dacxxel.h1175 subspan(index_type Offset, index_type Count = dynamic_extent) const {
1178 (Count == dynamic_extent || (Count >= 0 && Offset + Count <= TheSize));
1367 subspan(index_type Offset, index_type Count = dynamic_extent) const {
/external/llvm-project/libcxx/test/std/containers/views/span.objectrep/
Das_writable_bytes.pass.cpp36 if constexpr (sp.extent == std::dynamic_extent) in testRuntimeSpan()
37 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
Das_bytes.pass.cpp36 if constexpr (sp.extent == std::dynamic_extent) in testRuntimeSpan()
37 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
/external/libcxx/test/std/containers/views/span.objectrep/
Das_bytes.pass.cpp37 if (sp.extent == std::dynamic_extent) in testRuntimeSpan()
38 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
Das_writeable_bytes.pass.cpp37 if (sp.extent == std::dynamic_extent) in testRuntimeSpan()
38 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
/external/llvm-project/parallel-libs/acxxel/tests/
Dspan_test.cpp185 acxxel::Span<int> Span0e = Span.subspan(0, acxxel::dynamic_extent); in TEST()
192 acxxel::Span<int> Span1e = Span.subspan(1, acxxel::dynamic_extent); in TEST()
198 acxxel::Span<int> Span2e = Span.subspan(2, acxxel::dynamic_extent); in TEST()
203 acxxel::Span<int> Span3e = Span.subspan(3, acxxel::dynamic_extent); in TEST()
/external/pigweed/pw_span/
Dspan_test.cc106 static_assert(the_span.extent == dynamic_extent); in TEST()
115 static_assert(the_span.extent == dynamic_extent); in TEST()
153 static_assert(the_span.extent == dynamic_extent); in TEST()
164 static_assert(the_span.extent == dynamic_extent); in TEST()
173 static_assert(the_span.extent == dynamic_extent); in TEST()
181 static_assert(the_span.extent == dynamic_extent); in TEST()
204 static_assert(the_span.extent == dynamic_extent); in TEST()
1293 static_assert(decltype(made_span)::extent == dynamic_extent, "");
1310 static_assert(decltype(made_span)::extent == dynamic_extent, "");
1346 static_assert(decltype(made_span)::extent == dynamic_extent, "");
[all …]
/external/llvm-project/libcxx/test/std/containers/views/span.cons/
Ddefault.pass.cpp83 static_assert( std::is_default_constructible_v<std::span<int, std::dynamic_extent>>, ""); in main()
/external/pigweed/pw_kvs/public/pw_kvs/internal/
Dspan_traits.h36 struct ExtentImpl : std::integral_constant<size_t, std::dynamic_extent> {};
/external/pigweed/pw_bytes/public/pw_bytes/
Dendian.h157 typename = std::enable_if_t<kBufferSize != std::dynamic_extent &&

12