Move the default template arguments into the forward declarations for the containers: deque, forwardlist and list. References PR#22605.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@229705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2015-02-18 17:24:08 +00:00
parent 3f370b0a55
commit ceead9c855
3 changed files with 6 additions and 5 deletions

View File

@ -168,6 +168,7 @@ template <class T, class Allocator>
_LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_NAMESPACE_STD
template <class _Tp, class _Allocator> class __deque_base; template <class _Tp, class _Allocator> class __deque_base;
template <class _Tp, class _Allocator = allocator<_Tp> > class _LIBCPP_TYPE_VIS_ONLY deque;
template <class _ValueType, class _Pointer, class _Reference, class _MapPointer, template <class _ValueType, class _Pointer, class _Reference, class _MapPointer,
class _DiffType, _DiffType _BlockSize> class _DiffType, _DiffType _BlockSize>
@ -1178,7 +1179,7 @@ __deque_base<_Tp, _Allocator>::clear() _NOEXCEPT
} }
} }
template <class _Tp, class _Allocator = allocator<_Tp> > template <class _Tp, class _Allocator /*= allocator<_Tp>*/>
class _LIBCPP_TYPE_VIS_ONLY deque class _LIBCPP_TYPE_VIS_ONLY deque
: private __deque_base<_Tp, _Allocator> : private __deque_base<_Tp, _Allocator>
{ {

View File

@ -218,7 +218,7 @@ struct __forward_list_node
value_type __value_; value_type __value_;
}; };
template<class _Tp, class _Alloc> class _LIBCPP_TYPE_VIS_ONLY forward_list; template <class _Tp, class _Alloc = allocator<_Tp> > class _LIBCPP_TYPE_VIS_ONLY forward_list;
template<class _NodeConstPtr> class _LIBCPP_TYPE_VIS_ONLY __forward_list_const_iterator; template<class _NodeConstPtr> class _LIBCPP_TYPE_VIS_ONLY __forward_list_const_iterator;
template <class _NodePtr> template <class _NodePtr>
@ -547,7 +547,7 @@ __forward_list_base<_Tp, _Alloc>::clear() _NOEXCEPT
__before_begin()->__next_ = nullptr; __before_begin()->__next_ = nullptr;
} }
template <class _Tp, class _Alloc = allocator<_Tp> > template <class _Tp, class _Alloc /*= allocator<_Tp>*/>
class _LIBCPP_TYPE_VIS_ONLY forward_list class _LIBCPP_TYPE_VIS_ONLY forward_list
: private __forward_list_base<_Tp, _Alloc> : private __forward_list_base<_Tp, _Alloc>
{ {

View File

@ -226,7 +226,7 @@ struct __list_node
_Tp __value_; _Tp __value_;
}; };
template <class _Tp, class _Alloc> class _LIBCPP_TYPE_VIS_ONLY list; template <class _Tp, class _Alloc = allocator<_Tp> > class _LIBCPP_TYPE_VIS_ONLY list;
template <class _Tp, class _Alloc> class __list_imp; template <class _Tp, class _Alloc> class __list_imp;
template <class _Tp, class _VoidPtr> class _LIBCPP_TYPE_VIS_ONLY __list_const_iterator; template <class _Tp, class _VoidPtr> class _LIBCPP_TYPE_VIS_ONLY __list_const_iterator;
@ -799,7 +799,7 @@ __list_imp<_Tp, _Alloc>::swap(__list_imp& __c)
#endif #endif
} }
template <class _Tp, class _Alloc = allocator<_Tp> > template <class _Tp, class _Alloc /*= allocator<_Tp>*/>
class _LIBCPP_TYPE_VIS_ONLY list class _LIBCPP_TYPE_VIS_ONLY list
: private __list_imp<_Tp, _Alloc> : private __list_imp<_Tp, _Alloc>
{ {