From c5e7981aec37dd0bc5c893158c1a703b1b1de6d1 Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Tue, 31 Aug 2021 14:29:24 -0400 Subject: [PATCH] [libc++] Add missing space in (__map_value_compare&__y) etc. NFCI. --- libcxx/include/__memory/pointer_traits.h | 4 ++-- libcxx/include/map | 4 ++-- libcxx/include/unordered_map | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libcxx/include/__memory/pointer_traits.h b/libcxx/include/__memory/pointer_traits.h index 00484b5..b356092 100644 --- a/libcxx/include/__memory/pointer_traits.h +++ b/libcxx/include/__memory/pointer_traits.h @@ -184,7 +184,7 @@ template struct __to_address_helper { _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR static decltype(_VSTD::__to_address(declval().operator->())) - __call(const _Pointer&__p) _NOEXCEPT { + __call(const _Pointer& __p) _NOEXCEPT { return _VSTD::__to_address(__p.operator->()); } }; @@ -193,7 +193,7 @@ template struct __to_address_helper<_Pointer, decltype((void)pointer_traits<_Pointer>::to_address(declval()))> { _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR static decltype(pointer_traits<_Pointer>::to_address(declval())) - __call(const _Pointer&__p) _NOEXCEPT { + __call(const _Pointer& __p) _NOEXCEPT { return pointer_traits<_Pointer>::to_address(__p); } }; diff --git a/libcxx/include/map b/libcxx/include/map index 3c2b6ff..1ffb5a0 100644 --- a/libcxx/include/map +++ b/libcxx/include/map @@ -535,7 +535,7 @@ public: _LIBCPP_INLINE_VISIBILITY bool operator()(const _Key& __x, const _CP& __y) const {return static_cast(*this)(__x, __y.__get_value().first);} - void swap(__map_value_compare&__y) + void swap(__map_value_compare& __y) _NOEXCEPT_(__is_nothrow_swappable<_Compare>::value) { using _VSTD::swap; @@ -583,7 +583,7 @@ public: _LIBCPP_INLINE_VISIBILITY bool operator()(const _Key& __x, const _CP& __y) const {return comp(__x, __y.__get_value().first);} - void swap(__map_value_compare&__y) + void swap(__map_value_compare& __y) _NOEXCEPT_(__is_nothrow_swappable<_Compare>::value) { using _VSTD::swap; diff --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map index a0c1c55..969e673 100644 --- a/libcxx/include/unordered_map +++ b/libcxx/include/unordered_map @@ -478,7 +478,7 @@ public: size_t operator()(const _K2& __x) const {return static_cast(*this)(__x);} #endif - void swap(__unordered_map_hasher&__y) + void swap(__unordered_map_hasher& __y) _NOEXCEPT_(__is_nothrow_swappable<_Hash>::value) { using _VSTD::swap; @@ -513,7 +513,7 @@ public: size_t operator()(const _K2& __x) const {return __hash_(__x);} #endif - void swap(__unordered_map_hasher&__y) + void swap(__unordered_map_hasher& __y) _NOEXCEPT_(__is_nothrow_swappable<_Hash>::value) { using _VSTD::swap; @@ -574,7 +574,7 @@ public: bool operator()(const _K2& __x, const _Key& __y) const {return static_cast(*this)(__x, __y);} #endif - void swap(__unordered_map_equal&__y) + void swap(__unordered_map_equal& __y) _NOEXCEPT_(__is_nothrow_swappable<_Pred>::value) { using _VSTD::swap; @@ -624,7 +624,7 @@ public: bool operator()(const _K2& __x, const _Key& __y) const {return __pred_(__x, __y);} #endif - void swap(__unordered_map_equal&__y) + void swap(__unordered_map_equal& __y) _NOEXCEPT_(__is_nothrow_swappable<_Pred>::value) { using _VSTD::swap; -- 2.7.4