Lines Matching refs:stack

2 //===---------------------------- stack -----------------------------------===//
14 stack synopsis
20 class stack
33 stack() = default;
34 ~stack() = default;
36 stack(const stack& q) = default;
37 stack(stack&& q) = default;
39 stack& operator=(const stack& q) = default;
40 stack& operator=(stack&& q) = default;
42 explicit stack(const container_type& c);
43 explicit stack(container_type&& c);
44 template <class Alloc> explicit stack(const Alloc& a);
45 template <class Alloc> stack(const container_type& c, const Alloc& a);
46 template <class Alloc> stack(container_type&& c, const Alloc& a);
47 template <class Alloc> stack(const stack& c, const Alloc& a);
48 template <class Alloc> stack(stack&& c, const Alloc& a);
60 void swap(stack& c) noexcept(is_nothrow_swappable_v<Container>)
64 stack(Container) -> stack<typename Container::value_type, Container>; // C++17
67 stack(Container, Allocator) -> stack<typename Container::value_type, Container>; // C++17
70 bool operator==(const stack<T, Container>& x, const stack<T, Container>& y);
72 bool operator< (const stack<T, Container>& x, const stack<T, Container>& y);
74 bool operator!=(const stack<T, Container>& x, const stack<T, Container>& y);
76 bool operator> (const stack<T, Container>& x, const stack<T, Container>& y);
78 bool operator>=(const stack<T, Container>& x, const stack<T, Container>& y);
80 bool operator<=(const stack<T, Container>& x, const stack<T, Container>& y);
83 void swap(stack<T, Container>& x, stack<T, Container>& y)
101 template <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TEMPLATE_VIS stack;
106 operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
111 operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
114 class _LIBCPP_TEMPLATE_VIS stack
129 stack()
134 stack(const stack& __q) : c(__q.c) {}
137 stack& operator=(const stack& __q) {c = __q.c; return *this;}
142 stack(stack&& __q)
147 stack& operator=(stack&& __q)
152 explicit stack(container_type&& __c) : c(_VSTD::move(__c)) {}
156 explicit stack(const container_type& __c) : c(__c) {}
160 explicit stack(const _Alloc& __a,
165 stack(const container_type& __c, const _Alloc& __a,
170 stack(const stack& __s, const _Alloc& __a,
176 stack(container_type&& __c, const _Alloc& __a,
181 stack(stack&& __s, const _Alloc& __a,
216 void swap(stack& __s)
226 operator==(const stack<T1, _C1>& __x, const stack<T1, _C1>& __y);
231 operator< (const stack<T1, _C1>& __x, const stack<T1, _C1>& __y);
238 stack(_Container)
239 -> stack<typename _Container::value_type, _Container>;
246 stack(_Container, _Alloc)
247 -> stack<typename _Container::value_type, _Container>;
253 operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
261 operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
269 operator!=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
277 operator> (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
285 operator>=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
293 operator<=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
301 swap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y)
308 struct _LIBCPP_TEMPLATE_VIS uses_allocator<stack<_Tp, _Container>, _Alloc>