[libc++] [NFC] Normalize some `#ifndef _LIBCPP_HAS_NO_CONCEPTS`.

This commit is contained in:
Arthur O'Dwyer 2022-02-01 20:06:30 -05:00
parent 38db42d004
commit 93e7f35ac3
4 changed files with 21 additions and 7 deletions

View File

@ -14,11 +14,16 @@
#include <__config>
#include <__utility/move.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
#endif
_LIBCPP_BEGIN_NAMESPACE_STD
#ifndef _LIBCPP_HAS_NO_CONCEPTS
#if !defined(_LIBCPP_HAS_NO_CONCEPTS)
namespace ranges {
template <class _I1, class _I2, class _O1>
struct in_in_out_result {
[[no_unique_address]] _I1 in1;
@ -39,10 +44,11 @@ struct in_in_out_result {
return {_VSTD::move(in1), _VSTD::move(in2), _VSTD::move(out)};
}
};
} // namespace ranges
#endif // _LIBCPP_HAS_NO_CONCEPTS
#endif // !defined(_LIBCPP_HAS_NO_CONCEPTS)
_LIBCPP_END_NAMESPACE_STD
#endif // _LIBCPP___ALGORITHM_IN_IN_RESULT_H
#endif // _LIBCPP___ALGORITHM_IN_IN_OUT_RESULT_H

View File

@ -14,11 +14,16 @@
#include <__config>
#include <__utility/move.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
#endif
_LIBCPP_BEGIN_NAMESPACE_STD
#ifndef _LIBCPP_HAS_NO_CONCEPTS
#if !defined(_LIBCPP_HAS_NO_CONCEPTS)
namespace ranges {
template <class _I1, class _I2>
struct in_in_result {
[[no_unique_address]] _I1 in1;
@ -36,9 +41,10 @@ struct in_in_result {
_LIBCPP_HIDE_FROM_ABI constexpr
operator in_in_result<_II1, _II2>() && { return {_VSTD::move(in1), _VSTD::move(in2)}; }
};
} // namespace ranges
#endif // _LIBCPP_HAS_NO_CONCEPTS
#endif // !defined(_LIBCPP_HAS_NO_CONCEPTS)
_LIBCPP_END_NAMESPACE_STD

View File

@ -21,6 +21,7 @@
_LIBCPP_BEGIN_NAMESPACE_STD
#if !defined(_LIBCPP_HAS_NO_CONCEPTS)
namespace ranges {
template<class _InputIterator, class _OutputIterator>
@ -45,6 +46,7 @@ struct in_out_result {
};
} // namespace ranges
#endif // !defined(_LIBCPP_HAS_NO_CONCEPTS)
_LIBCPP_END_NAMESPACE_STD

View File

@ -17,13 +17,13 @@
_LIBCPP_BEGIN_NAMESPACE_STD
#ifndef _LIBCPP_HAS_NO_CONCEPTS
#if !defined(_LIBCPP_HAS_NO_CONCEPTS)
template <class _I1, class _I2, class _Rp, class _P1 = identity, class _P2 = identity>
concept indirectly_comparable =
indirect_binary_predicate<_Rp, projected<_I1, _P1>, projected<_I2, _P2>>;
#endif // _LIBCPP_HAS_NO_CONCEPTS
#endif // !defined(_LIBCPP_HAS_NO_CONCEPTS)
_LIBCPP_END_NAMESPACE_STD