Home
last modified time | relevance | path

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

/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/Microsoft-GSL/include/gsl/
Dstring_span22 #include <gsl/span> // for operator!=, operator==, dynamic_extent
60 template <typename CharT, std::ptrdiff_t Extent = dynamic_extent>
63 template <std::ptrdiff_t Extent = dynamic_extent>
66 template <std::ptrdiff_t Extent = dynamic_extent>
69 template <std::ptrdiff_t Extent = dynamic_extent>
72 template <std::ptrdiff_t Extent = dynamic_extent>
75 template <std::ptrdiff_t Extent = dynamic_extent>
78 template <std::ptrdiff_t Extent = dynamic_extent>
81 template <std::ptrdiff_t Extent = dynamic_extent>
84 template <std::ptrdiff_t Extent = dynamic_extent>
[all …]
Dspan73 constexpr const std::ptrdiff_t dynamic_extent = -1;
75 template <class ElementType, std::ptrdiff_t Extent = dynamic_extent>
113 : public std::integral_constant<bool, From == To || From == gsl::dynamic_extent ||
114 To == gsl::dynamic_extent>
316 static_assert(Other == Ext || Other == dynamic_extent,
327 class extent_type<dynamic_extent>
347 using type = span<ElementType, Count != dynamic_extent
349 : (Extent != dynamic_extent ? Extent - Offset : Extent)>;
469 template <std::ptrdiff_t Offset, std::ptrdiff_t Count = dynamic_extent>
475 (Count == dynamic_extent || (Count >= 0 && Offset + Count <= size())));
[all …]
Dgsl_algorithm21 #include <gsl/span> // for dynamic_extent, span
46 static_assert(SrcExtent == dynamic_extent || DestExtent == dynamic_extent ||
/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()
Dfirst.pass.cpp41 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan()
61 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()
/external/libcxx/test/std/containers/views/span.objectrep/
Das_writeable_bytes.pass.cpp37 if (sp.extent == std::dynamic_extent) in testRuntimeSpan()
38 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
Das_bytes.pass.cpp37 if (sp.extent == std::dynamic_extent) in testRuntimeSpan()
38 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
/external/Microsoft-GSL/tests/
Dstring_span_tests.cpp814 void use(basic_string_span<T, gsl::dynamic_extent>) in use() argument