[libc++] NFC: Fix synopsis comments and sort includes in ranges
authorLouis Dionne <ldionne.2@gmail.com>
Mon, 12 Jul 2021 13:54:53 +0000 (09:54 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 12 Jul 2021 13:56:09 +0000 (09:56 -0400)
libcxx/include/__ranges/drop_view.h
libcxx/test/std/ranges/range.req/range.refinements/bidirectional_range.compile.pass.cpp
libcxx/test/std/ranges/range.req/range.refinements/common_range.compile.pass.cpp
libcxx/test/std/ranges/range.req/range.refinements/contiguous_range.compile.pass.cpp
libcxx/test/std/ranges/range.req/range.refinements/forward_range.compile.pass.cpp
libcxx/test/std/ranges/range.req/range.refinements/input_range.compile.pass.cpp
libcxx/test/std/ranges/range.req/range.refinements/random_access_range.compile.pass.cpp

index 43ac36b..38c101a 100644 (file)
 #define _LIBCPP___RANGES_DROP_VIEW_H
 
 #include <__config>
-#include <__iterator/iterator_traits.h>
 #include <__iterator/concepts.h>
+#include <__iterator/iterator_traits.h>
 #include <__iterator/next.h>
 #include <__ranges/access.h>
-#include <__ranges/view_interface.h>
 #include <__ranges/all.h>
-#include <type_traits>
+#include <__ranges/view_interface.h>
 #include <optional>
+#include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header
index 4c94e21..59ce71e 100644 (file)
@@ -9,7 +9,7 @@
 // UNSUPPORTED: c++03, c++11, c++14, c++17
 // UNSUPPORTED: libcpp-no-concepts
 
-// template<class T>
+// template<class R>
 // concept common_range;
 
 #include <ranges>
index 1a58f1f..d19531c 100644 (file)
@@ -10,7 +10,8 @@
 // UNSUPPORTED: libcpp-no-concepts
 // UNSUPPORTED: gcc-10
 
-// std::ranges::forward_range;
+// template<class R>
+// concept forward_range;
 
 #include <ranges>
 
index bdfa24f..dc9b9bc 100644 (file)
@@ -10,7 +10,7 @@
 // UNSUPPORTED: libcpp-no-concepts
 // UNSUPPORTED: gcc-10
 
-// template<range _Rp>
+// template<class R>
 // concept input_range;
 
 #include <ranges>