Tweak whitespace in std::allocator files

* include/bits/allocator.h: Remove trailing whitespace, tab-indent.
	* include/ext/new_allocator.h: Likewise.

From-SVN: r241371
This commit is contained in:
Jonathan Wakely 2016-10-20 12:37:19 +01:00 committed by Jonathan Wakely
parent 2e20345f13
commit 88b3e63150
3 changed files with 25 additions and 22 deletions

View File

@ -1,5 +1,8 @@
2016-10-20 Jonathan Wakely <jwakely@redhat.com> 2016-10-20 Jonathan Wakely <jwakely@redhat.com>
* include/bits/allocator.h: Remove trailing whitespace, tab-indent.
* include/ext/new_allocator.h: Likewise.
PR libstdc++/78052 PR libstdc++/78052
* include/bits/allocator.h (allocator<void>::construct) * include/bits/allocator.h (allocator<void>::construct)
(allocator<void>::destroy): Define. (allocator<void>::destroy): Define.

View File

@ -75,8 +75,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef void value_type; typedef void value_type;
template<typename _Tp1> template<typename _Tp1>
struct rebind struct rebind
{ typedef allocator<_Tp1> other; }; { typedef allocator<_Tp1> other; };
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
// _GLIBCXX_RESOLVE_LIB_DEFECTS // _GLIBCXX_RESOLVE_LIB_DEFECTS
@ -86,13 +86,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef true_type is_always_equal; typedef true_type is_always_equal;
template<typename _Up, typename... _Args> template<typename _Up, typename... _Args>
void void
construct(_Up* __p, _Args&&... __args) construct(_Up* __p, _Args&&... __args)
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
template<typename _Up> template<typename _Up>
void void
destroy(_Up* __p) { __p->~_Up(); } destroy(_Up* __p) { __p->~_Up(); }
#endif #endif
}; };
@ -117,8 +117,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef _Tp value_type; typedef _Tp value_type;
template<typename _Tp1> template<typename _Tp1>
struct rebind struct rebind
{ typedef allocator<_Tp1> other; }; { typedef allocator<_Tp1> other; };
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
// _GLIBCXX_RESOLVE_LIB_DEFECTS // _GLIBCXX_RESOLVE_LIB_DEFECTS
@ -134,7 +134,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
: __allocator_base<_Tp>(__a) { } : __allocator_base<_Tp>(__a) { }
template<typename _Tp1> template<typename _Tp1>
allocator(const allocator<_Tp1>&) throw() { } allocator(const allocator<_Tp1>&) throw() { }
~allocator() throw() { } ~allocator() throw() { }

View File

@ -67,8 +67,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef _Tp value_type; typedef _Tp value_type;
template<typename _Tp1> template<typename _Tp1>
struct rebind struct rebind
{ typedef new_allocator<_Tp1> other; }; { typedef new_allocator<_Tp1> other; };
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
// _GLIBCXX_RESOLVE_LIB_DEFECTS // _GLIBCXX_RESOLVE_LIB_DEFECTS
@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
new_allocator(const new_allocator&) _GLIBCXX_USE_NOEXCEPT { } new_allocator(const new_allocator&) _GLIBCXX_USE_NOEXCEPT { }
template<typename _Tp1> template<typename _Tp1>
new_allocator(const new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { } new_allocator(const new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { }
~new_allocator() _GLIBCXX_USE_NOEXCEPT { } ~new_allocator() _GLIBCXX_USE_NOEXCEPT { }
@ -131,13 +131,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
template<typename _Up, typename... _Args> template<typename _Up, typename... _Args>
void void
construct(_Up* __p, _Args&&... __args) construct(_Up* __p, _Args&&... __args)
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
template<typename _Up> template<typename _Up>
void void
destroy(_Up* __p) { __p->~_Up(); } destroy(_Up* __p) { __p->~_Up(); }
#else #else
// _GLIBCXX_RESOLVE_LIB_DEFECTS // _GLIBCXX_RESOLVE_LIB_DEFECTS
// 402. wrong new expression in [some_] allocator::construct // 402. wrong new expression in [some_] allocator::construct