diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2019-03-06 03:59:44 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2019-03-06 03:59:44 +0000 |
commit | 8eda3ad29d89317aa25cf2e7aaf8c785b32fc608 (patch) | |
tree | 0e7a72a662e62ff3259f96d65885e6065c036064 /libcxx/test/std/containers/views/span.sub/first.pass.cpp | |
parent | c2d6b84d3c7ec999ee2df9c3a061bd63c147f977 (diff) | |
download | bcm5719-llvm-8eda3ad29d89317aa25cf2e7aaf8c785b32fc608.tar.gz bcm5719-llvm-8eda3ad29d89317aa25cf2e7aaf8c785b32fc608.zip |
Eradicate all the ptrdiff_ts in span left over from applying P1227. A couple of other minor cleanups. NFC
llvm-svn: 355481
Diffstat (limited to 'libcxx/test/std/containers/views/span.sub/first.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/views/span.sub/first.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/containers/views/span.sub/first.pass.cpp b/libcxx/test/std/containers/views/span.sub/first.pass.cpp index f9da9fdc233..30ab130381c 100644 --- a/libcxx/test/std/containers/views/span.sub/first.pass.cpp +++ b/libcxx/test/std/containers/views/span.sub/first.pass.cpp @@ -10,7 +10,7 @@ // <span> -// template<ptrdiff_t Count> +// template<size_t Count> // constexpr span<element_type, Count> first() const; // // constexpr span<element_type, dynamic_extent> first(index_type count) const; @@ -25,7 +25,7 @@ #include "test_macros.h" -template <typename Span, ptrdiff_t Count> +template <typename Span, size_t Count> constexpr bool testConstexprSpan(Span sp) { LIBCPP_ASSERT((noexcept(sp.template first<Count>()))); @@ -45,7 +45,7 @@ constexpr bool testConstexprSpan(Span sp) } -template <typename Span, ptrdiff_t Count> +template <typename Span, size_t Count> void testRuntimeSpan(Span sp) { LIBCPP_ASSERT((noexcept(sp.template first<Count>()))); |