Searched refs:dynamic_extent (Results 1 – 13 of 13) sorted by relevance
/external/libchrome/base/containers/ |
D | span.h | 22 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 …]
|
D | span_unittest.cc | 1067 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()
|
D | span_unittest.nc | 24 // A default constructed span must have an extent of 0 or dynamic_extent.
|
/external/Microsoft-GSL/include/gsl/ |
D | string_span | 22 #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 …]
|
D | span | 73 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 …]
|
D | gsl_algorithm | 21 #include <gsl/span> // for dynamic_extent, span 46 static_assert(SrcExtent == dynamic_extent || DestExtent == dynamic_extent ||
|
/external/libcxx/include/ |
D | span | 20 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/ |
D | subspan.pass.cpp | 41 …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()
|
D | first.pass.cpp | 41 static_assert(S2::extent == std::dynamic_extent, ""); in testConstexprSpan() 61 static_assert(S2::extent == std::dynamic_extent, ""); in testRuntimeSpan()
|
D | last.pass.cpp | 41 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/ |
D | as_writeable_bytes.pass.cpp | 37 if (sp.extent == std::dynamic_extent) in testRuntimeSpan() 38 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
|
D | as_bytes.pass.cpp | 37 if (sp.extent == std::dynamic_extent) in testRuntimeSpan() 38 assert(spBytes.extent == std::dynamic_extent); in testRuntimeSpan()
|
/external/Microsoft-GSL/tests/ |
D | string_span_tests.cpp | 814 void use(basic_string_span<T, gsl::dynamic_extent>) in use() argument
|