[libcxx-commits] [libcxx] 3ca6dea - [libc++][NFC] Change a few instances of > > to >> in C++20 code
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 26 08:22:56 PDT 2021
Author: Louis Dionne
Date: 2021-07-26T11:22:47-04:00
New Revision: 3ca6dea05dec44680f29a40de7481aede09cae8a
URL: https://github.com/llvm/llvm-project/commit/3ca6dea05dec44680f29a40de7481aede09cae8a
DIFF: https://github.com/llvm/llvm-project/commit/3ca6dea05dec44680f29a40de7481aede09cae8a.diff
LOG: [libc++][NFC] Change a few instances of > > to >> in C++20 code
Added:
Modified:
libcxx/include/__iterator/concepts.h
libcxx/include/__ranges/concepts.h
Removed:
################################################################################
diff --git a/libcxx/include/__iterator/concepts.h b/libcxx/include/__iterator/concepts.h
index 94e5f5d0a6cc4..f577bd944c283 100644
--- a/libcxx/include/__iterator/concepts.h
+++ b/libcxx/include/__iterator/concepts.h
@@ -40,15 +40,15 @@ concept __indirectly_readable_impl =
typename iter_value_t<_In>;
typename iter_reference_t<_In>;
typename iter_rvalue_reference_t<_In>;
- { *__i } -> same_as<iter_reference_t<_In> >;
- { ranges::iter_move(__i) } -> same_as<iter_rvalue_reference_t<_In> >;
+ { *__i } -> same_as<iter_reference_t<_In>>;
+ { ranges::iter_move(__i) } -> same_as<iter_rvalue_reference_t<_In>>;
} &&
common_reference_with<iter_reference_t<_In>&&, iter_value_t<_In>&> &&
common_reference_with<iter_reference_t<_In>&&, iter_rvalue_reference_t<_In>&&> &&
common_reference_with<iter_rvalue_reference_t<_In>&&, const iter_value_t<_In>&>;
template<class _In>
-concept indirectly_readable = __indirectly_readable_impl<remove_cvref_t<_In> >;
+concept indirectly_readable = __indirectly_readable_impl<remove_cvref_t<_In>>;
template<indirectly_readable _Tp>
using iter_common_reference_t = common_reference_t<iter_reference_t<_Tp>, iter_value_t<_Tp>&>;
@@ -75,7 +75,7 @@ concept weakly_incrementable =
movable<_Ip> &&
requires(_Ip __i) {
typename iter_
diff erence_t<_Ip>;
- requires __signed_integer_like<iter_
diff erence_t<_Ip> >;
+ requires __signed_integer_like<iter_
diff erence_t<_Ip>>;
{ ++__i } -> same_as<_Ip&>; // not required to be equality-preserving
__i++; // not required to be equality-preserving
};
@@ -110,10 +110,10 @@ inline constexpr bool disable_sized_sentinel_for = false;
template<class _Sp, class _Ip>
concept sized_sentinel_for =
sentinel_for<_Sp, _Ip> &&
- !disable_sized_sentinel_for<remove_cv_t<_Sp>, remove_cv_t<_Ip> > &&
+ !disable_sized_sentinel_for<remove_cv_t<_Sp>, remove_cv_t<_Ip>> &&
requires(const _Ip& __i, const _Sp& __s) {
- { __s - __i } -> same_as<iter_
diff erence_t<_Ip> >;
- { __i - __s } -> same_as<iter_
diff erence_t<_Ip> >;
+ { __s - __i } -> same_as<iter_
diff erence_t<_Ip>>;
+ { __i - __s } -> same_as<iter_
diff erence_t<_Ip>>;
};
// [iterator.concept.input]
diff --git a/libcxx/include/__ranges/concepts.h b/libcxx/include/__ranges/concepts.h
index f314685e3dc9d..398f3c9010d33 100644
--- a/libcxx/include/__ranges/concepts.h
+++ b/libcxx/include/__ranges/concepts.h
@@ -54,16 +54,16 @@ namespace ranges {
using sentinel_t = decltype(ranges::end(declval<_Rp&>()));
template <range _Rp>
- using range_
diff erence_t = iter_
diff erence_t<iterator_t<_Rp> >;
+ using range_
diff erence_t = iter_
diff erence_t<iterator_t<_Rp>>;
template <range _Rp>
- using range_value_t = iter_value_t<iterator_t<_Rp> >;
+ using range_value_t = iter_value_t<iterator_t<_Rp>>;
template <range _Rp>
- using range_reference_t = iter_reference_t<iterator_t<_Rp> >;
+ using range_reference_t = iter_reference_t<iterator_t<_Rp>>;
template <range _Rp>
- using range_rvalue_reference_t = iter_rvalue_reference_t<iterator_t<_Rp> >;
+ using range_rvalue_reference_t = iter_rvalue_reference_t<iterator_t<_Rp>>;
// [range.sized]
template <class _Tp>
@@ -90,17 +90,17 @@ namespace ranges {
// [range.refinements], other range refinements
template <class _Tp>
- concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp> >;
+ concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>;
template <class _Tp>
- concept forward_range = input_range<_Tp> && forward_iterator<iterator_t<_Tp> >;
+ concept forward_range = input_range<_Tp> && forward_iterator<iterator_t<_Tp>>;
template <class _Tp>
- concept bidirectional_range = forward_range<_Tp> && bidirectional_iterator<iterator_t<_Tp> >;
+ concept bidirectional_range = forward_range<_Tp> && bidirectional_iterator<iterator_t<_Tp>>;
template <class _Tp>
concept random_access_range =
- bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp> >;
+ bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp>>;
template<class _Tp>
concept contiguous_range =
@@ -111,7 +111,7 @@ namespace ranges {
};
template <class _Tp>
- concept common_range = range<_Tp> && same_as<iterator_t<_Tp>, sentinel_t<_Tp> >;
+ concept common_range = range<_Tp> && same_as<iterator_t<_Tp>, sentinel_t<_Tp>>;
template<class _Tp>
concept viewable_range =
More information about the libcxx-commits
mailing list