aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/libcxx/include/__concepts/assignable.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__concepts/assignable.h')
-rw-r--r--contrib/llvm-project/libcxx/include/__concepts/assignable.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/llvm-project/libcxx/include/__concepts/assignable.h b/contrib/llvm-project/libcxx/include/__concepts/assignable.h
index 91edd400adf6..3f7544c93406 100644
--- a/contrib/llvm-project/libcxx/include/__concepts/assignable.h
+++ b/contrib/llvm-project/libcxx/include/__concepts/assignable.h
@@ -22,19 +22,19 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-#if _LIBCPP_STD_VER > 17
+#if _LIBCPP_STD_VER >= 20
// [concept.assignable]
-template<class _Lhs, class _Rhs>
+template <class _Lhs, class _Rhs>
concept assignable_from =
- is_lvalue_reference_v<_Lhs> &&
- common_reference_with<__make_const_lvalue_ref<_Lhs>, __make_const_lvalue_ref<_Rhs>> &&
- requires (_Lhs __lhs, _Rhs&& __rhs) {
- { __lhs = _VSTD::forward<_Rhs>(__rhs) } -> same_as<_Lhs>;
- };
+ is_lvalue_reference_v<_Lhs> &&
+ common_reference_with<__make_const_lvalue_ref<_Lhs>, __make_const_lvalue_ref<_Rhs>> &&
+ requires(_Lhs __lhs, _Rhs&& __rhs) {
+ { __lhs = _VSTD::forward<_Rhs>(__rhs) } -> same_as<_Lhs>;
+ };
-#endif // _LIBCPP_STD_VER > 17
+#endif // _LIBCPP_STD_VER >= 20
_LIBCPP_END_NAMESPACE_STD