Move the default template arguments into the forward declarations for the container adapters: stack and queue. References PR#22605.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@229708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc3ea928ae
commit
a46f5ce5bb
@ -177,7 +177,7 @@ template <class T, class Container, class Compare>
|
|||||||
|
|
||||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||||
|
|
||||||
template <class _Tp, class _Container> class _LIBCPP_TYPE_VIS_ONLY queue;
|
template <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TYPE_VIS_ONLY queue;
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
@ -189,7 +189,7 @@ _LIBCPP_INLINE_VISIBILITY
|
|||||||
bool
|
bool
|
||||||
operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y);
|
operator< (const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y);
|
||||||
|
|
||||||
template <class _Tp, class _Container = deque<_Tp> >
|
template <class _Tp, class _Container /*= deque<_Tp>*/>
|
||||||
class _LIBCPP_TYPE_VIS_ONLY queue
|
class _LIBCPP_TYPE_VIS_ONLY queue
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -91,7 +91,7 @@ template <class T, class Container>
|
|||||||
|
|
||||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||||
|
|
||||||
template <class _Tp, class _Container> class _LIBCPP_TYPE_VIS_ONLY stack;
|
template <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TYPE_VIS_ONLY stack;
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
@ -103,7 +103,7 @@ _LIBCPP_INLINE_VISIBILITY
|
|||||||
bool
|
bool
|
||||||
operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
|
operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
|
||||||
|
|
||||||
template <class _Tp, class _Container = deque<_Tp> >
|
template <class _Tp, class _Container /*= deque<_Tp>*/>
|
||||||
class _LIBCPP_TYPE_VIS_ONLY stack
|
class _LIBCPP_TYPE_VIS_ONLY stack
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user