[gcc(refs/users/ppalka/heads/libstdcxx-constrained-algos)] No need to use std:: prefix for type traits and concepts

Patrick Palka ppalka@gcc.gnu.org
Sat Jan 18 04:46:00 GMT 2020


https://gcc.gnu.org/g:0f04f5e889d0c69b223e45a5761a33e03e95bdb6

commit 0f04f5e889d0c69b223e45a5761a33e03e95bdb6
Author: Patrick Palka <ppalka@gcc.gnu.org>
Date:   Fri Jan 17 21:04:32 2020 -0500

    No need to use std:: prefix for type traits and concepts

Diff:
---
 libstdc++-v3/include/bits/ranges_algo.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h
index bd1f64f..79ba19a 100644
--- a/libstdc++-v3/include/bits/ranges_algo.h
+++ b/libstdc++-v3/include/bits/ranges_algo.h
@@ -522,8 +522,8 @@ namespace ranges
 	     _Iter2 __first2, _Sent2 __last2,
 	     _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {})
     {
-      if constexpr (std::bidirectional_iterator<_Iter1>
-		    && std::bidirectional_iterator<_Iter2>)
+      if constexpr (bidirectional_iterator<_Iter1>
+		    && bidirectional_iterator<_Iter2>)
 	{
 	  auto __rresult
 	    = ranges::search(reverse_iterator<_Iter1>(__last1),
@@ -607,8 +607,8 @@ namespace ranges
 		     _Proj1 __proj1 = {}, _Proj2 __proj2 = {})
       {
 	constexpr bool __sized_iters
-	  = (std::sized_sentinel_for<_Sent1, _Iter1>
-	     && std::sized_sentinel_for<_Sent2, _Iter2>);
+	  = (sized_sentinel_for<_Sent1, _Iter1>
+	     && sized_sentinel_for<_Sent2, _Iter2>);
 	if constexpr (__sized_iters)
 	  {
 	    auto __d1 = std::distance(__first1, __last1);
@@ -689,8 +689,8 @@ namespace ranges
 	// TODO: implement more specializations to at least have parity with
 	// std::equal.
 	constexpr bool __sized_iters
-	  = (std::sized_sentinel_for<_Sent1, _Iter1>
-	     && std::sized_sentinel_for<_Sent2, _Iter2>);
+	  = (sized_sentinel_for<_Sent1, _Iter1>
+	     && sized_sentinel_for<_Sent2, _Iter2>);
 	if constexpr (__sized_iters)
 	  {
 	    auto __d1 = std::distance(__first1, __last1);



More information about the Libstdc++-cvs mailing list