diff --git a/include/__hash_table b/include/__hash_table index 2e371a42..b185cde2 100644 --- a/include/__hash_table +++ b/include/__hash_table @@ -23,7 +23,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_VISIBLE -size_t __next_prime(size_t); +size_t __next_prime(size_t __n); template struct __hash_node_base @@ -54,11 +54,12 @@ struct __hash_node value_type __value_; }; -template class __hash_table; -template class __hash_const_iterator; -template class __hash_map_iterator; -template class __hash_map_const_iterator; -template class _LIBCPP_VISIBLE unordered_map; +template class __hash_table; +template class __hash_const_iterator; +template class __hash_map_iterator; +template class __hash_map_const_iterator; +template + class _LIBCPP_VISIBLE unordered_map; template class _LIBCPP_VISIBLE __hash_iterator @@ -199,7 +200,7 @@ private: template friend class _LIBCPP_VISIBLE unordered_multimap; }; -template class _LIBCPP_VISIBLE __hash_const_local_iterator; +template class _LIBCPP_VISIBLE __hash_const_local_iterator; template class _LIBCPP_VISIBLE __hash_local_iterator @@ -411,7 +412,7 @@ public: } }; -template class __hash_map_node_destructor; +template class __hash_map_node_destructor; template class __hash_node_destructor diff --git a/include/__mutex_base b/include/__mutex_base index 3bc0b5ba..6f98d2e6 100644 --- a/include/__mutex_base +++ b/include/__mutex_base @@ -21,8 +21,8 @@ #ifdef _LIBCPP_SHARED_LOCK namespace ting { -template class shared_lock; -template class upgrade_lock; +template class shared_lock; +template class upgrade_lock; } #endif // _LIBCPP_SHARED_LOCK diff --git a/include/__tree b/include/__tree index 018d7290..676819b0 100644 --- a/include/__tree +++ b/include/__tree @@ -21,13 +21,19 @@ _LIBCPP_BEGIN_NAMESPACE_STD -template class __tree; -template class _LIBCPP_VISIBLE __tree_iterator; -template class _LIBCPP_VISIBLE __tree_const_iterator; -template class _LIBCPP_VISIBLE map; -template class _LIBCPP_VISIBLE multimap; -template class _LIBCPP_VISIBLE set; -template class _LIBCPP_VISIBLE multiset; +template class __tree; +template + class _LIBCPP_VISIBLE __tree_iterator; +template + class _LIBCPP_VISIBLE __tree_const_iterator; +template + class _LIBCPP_VISIBLE map; +template + class _LIBCPP_VISIBLE multimap; +template + class _LIBCPP_VISIBLE set; +template + class _LIBCPP_VISIBLE multiset; /* @@ -494,7 +500,7 @@ __tree_remove(_NodePtr __root, _NodePtr __z) _NOEXCEPT } } -template class __map_node_destructor; +template class __map_node_destructor; template class __tree_node_destructor @@ -606,8 +612,8 @@ public: #endif // !defined(_LIBCPP_HAS_NO_RVALUE_REFERENCES) && !defined(_LIBCPP_HAS_NO_VARIADICS) }; -template class __map_iterator; -template class __map_const_iterator; +template class __map_iterator; +template class __map_const_iterator; template class _LIBCPP_VISIBLE __tree_iterator diff --git a/include/forward_list b/include/forward_list index aae3317c..a3810f0d 100644 --- a/include/forward_list +++ b/include/forward_list @@ -178,7 +178,7 @@ template _LIBCPP_BEGIN_NAMESPACE_STD -template struct __forward_list_node; +template struct __forward_list_node; template struct __forward_begin_node @@ -208,8 +208,8 @@ struct __forward_list_node value_type __value_; }; -template class forward_list; -template class __forward_list_const_iterator; +template class forward_list; +template class __forward_list_const_iterator; template class _LIBCPP_VISIBLE __forward_list_iterator diff --git a/include/future b/include/future index 90eb6e4c..e39ae4cf 100644 --- a/include/future +++ b/include/future @@ -967,9 +967,8 @@ __async_assoc_state::__on_zero_shared() _NOEXCEPT base::__on_zero_shared(); } -template class promise; -template class shared_future; -template class atomic_future; +template class promise; +template class shared_future; // future @@ -1000,7 +999,6 @@ class _LIBCPP_VISIBLE future template friend class promise; template friend class shared_future; - template friend class atomic_future; #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES template @@ -1103,7 +1101,6 @@ class _LIBCPP_VISIBLE future<_R&> template friend class promise; template friend class shared_future; - template friend class atomic_future; #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES template @@ -1201,7 +1198,6 @@ class _LIBCPP_VISIBLE future template friend class promise; template friend class shared_future; - template friend class atomic_future; #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES template @@ -1273,7 +1269,7 @@ swap(future<_R>& __x, future<_R>& __y) // promise -template class packaged_task; +template class packaged_task; template class _LIBCPP_VISIBLE promise @@ -1728,7 +1724,7 @@ __packaged_task_func<_F, _Alloc, _R(_ArgTypes...)>::operator()(_ArgTypes&& ... _ return __invoke(__f_.first(), _STD::forward<_ArgTypes>(__arg)...); } -template class __packaged_task_function; +template class __packaged_task_function; template class __packaged_task_function<_R(_ArgTypes...)> diff --git a/include/list b/include/list index 9d8fc726..278f057d 100644 --- a/include/list +++ b/include/list @@ -180,7 +180,7 @@ template _LIBCPP_BEGIN_NAMESPACE_STD -template struct __list_node; +template struct __list_node; template struct __list_node_base @@ -209,9 +209,9 @@ struct __list_node _Tp __value_; }; -template class list; -template class __list_imp; -template class __list_const_iterator; +template class list; +template class __list_imp; +template class __list_const_iterator; template class _LIBCPP_VISIBLE __list_iterator diff --git a/include/map b/include/map index c0bc7841..d675bc56 100644 --- a/include/map +++ b/include/map @@ -524,9 +524,11 @@ public: } }; -template class map; -template class multimap; -template class __map_const_iterator; +template + class map; +template + class multimap; +template class __map_const_iterator; template class _LIBCPP_VISIBLE __map_iterator diff --git a/include/memory b/include/memory index 67f9937c..6f6a8ce3 100644 --- a/include/memory +++ b/include/memory @@ -2507,7 +2507,7 @@ inline _LIBCPP_INLINE_VISIBILITY bool operator>=(const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) {return !(__x < __y);} -template struct hash; +template struct hash; template struct _LIBCPP_VISIBLE hash<_Tp*> @@ -3965,7 +3965,7 @@ void declare_reachable(void* __p); void declare_no_pointers(char* __p, size_t __n); void undeclare_no_pointers(char* __p, size_t __n); pointer_safety get_pointer_safety() _NOEXCEPT; -void* __undeclare_reachable(void*); +void* __undeclare_reachable(void* __p); template inline _LIBCPP_INLINE_VISIBILITY @@ -3975,7 +3975,7 @@ undeclare_reachable(_Tp* __p) return static_cast<_Tp*>(__undeclare_reachable(__p)); } -void* align(size_t, size_t, void*&, size_t&); +void* align(size_t __align, size_t __sz, void*& __ptr, size_t& __space); _LIBCPP_END_NAMESPACE_STD diff --git a/include/new b/include/new index fac9f853..81c16bdf 100644 --- a/include/new +++ b/include/new @@ -89,23 +89,23 @@ _LIBCPP_VISIBLE new_handler get_new_handler() _NOEXCEPT; } // std -_LIBCPP_VISIBLE void* operator new(std::size_t) +_LIBCPP_VISIBLE void* operator new(std::size_t __sz) #if !__has_feature(cxx_noexcept) throw(std::bad_alloc) #endif ; -_LIBCPP_VISIBLE void* operator new(std::size_t, const std::nothrow_t&) _NOEXCEPT; -_LIBCPP_VISIBLE void operator delete(void*) _NOEXCEPT; -_LIBCPP_VISIBLE void operator delete(void*, const std::nothrow_t&) _NOEXCEPT; +_LIBCPP_VISIBLE void* operator new(std::size_t __sz, const std::nothrow_t&) _NOEXCEPT; +_LIBCPP_VISIBLE void operator delete(void* __p) _NOEXCEPT; +_LIBCPP_VISIBLE void operator delete(void* __p, const std::nothrow_t&) _NOEXCEPT; -_LIBCPP_VISIBLE void* operator new[](std::size_t) +_LIBCPP_VISIBLE void* operator new[](std::size_t __sz) #if !__has_feature(cxx_noexcept) throw(std::bad_alloc) #endif ; -_LIBCPP_VISIBLE void* operator new[](std::size_t, const std::nothrow_t&) _NOEXCEPT; -_LIBCPP_VISIBLE void operator delete[](void*) _NOEXCEPT; -_LIBCPP_VISIBLE void operator delete[](void*, const std::nothrow_t&) _NOEXCEPT; +_LIBCPP_VISIBLE void* operator new[](std::size_t __sz, const std::nothrow_t&) _NOEXCEPT; +_LIBCPP_VISIBLE void operator delete[](void* __p) _NOEXCEPT; +_LIBCPP_VISIBLE void operator delete[](void* __p, const std::nothrow_t&) _NOEXCEPT; _LIBCPP_INLINE_VISIBILITY inline void* operator new (std::size_t, void* __p) _NOEXCEPT {return __p;} _LIBCPP_INLINE_VISIBILITY inline void* operator new[](std::size_t, void* __p) _NOEXCEPT {return __p;} diff --git a/include/regex b/include/regex index b8b4a285..c4c58a4b 100644 --- a/include/regex +++ b/include/regex @@ -2410,7 +2410,7 @@ __exit: } } -template class __lookahead; +template class __lookahead; template > class _LIBCPP_VISIBLE basic_regex diff --git a/include/string b/include/string index f05fe367..249af093 100644 --- a/include/string +++ b/include/string @@ -972,23 +972,24 @@ char_traits::assign(char_type* __s, size_t __n, char_type __a) template basic_string<_CharT, _Traits, _Allocator> -operator+(const basic_string<_CharT, _Traits, _Allocator>&, const basic_string<_CharT, _Traits, _Allocator>&); +operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, + const basic_string<_CharT, _Traits, _Allocator>& __y); template basic_string<_CharT, _Traits, _Allocator> -operator+(const _CharT*, const basic_string<_CharT,_Traits,_Allocator>&); +operator+(const _CharT* __x, const basic_string<_CharT,_Traits,_Allocator>& __y); template basic_string<_CharT, _Traits, _Allocator> -operator+(_CharT, const basic_string<_CharT,_Traits,_Allocator>&); +operator+(_CharT __x, const basic_string<_CharT,_Traits,_Allocator>& __y); template basic_string<_CharT, _Traits, _Allocator> -operator+(const basic_string<_CharT, _Traits, _Allocator>&, const _CharT*); +operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, const _CharT* __y); template basic_string<_CharT, _Traits, _Allocator> -operator+(const basic_string<_CharT, _Traits, _Allocator>&, _CharT); +operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, _CharT __y); template class __basic_string_common diff --git a/include/type_traits b/include/type_traits index e7bb1eb3..5c7e46f2 100644 --- a/include/type_traits +++ b/include/type_traits @@ -1666,7 +1666,7 @@ struct __member_pointer_traits // result_of -template class result_of; +template class result_of; template class __result_of