• Home
  • Raw
  • Download

Lines Matching full: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)
99 template <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TEMPLATE_VIS stack;
104 operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
109 operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
112 class _LIBCPP_TEMPLATE_VIS stack
127 stack()
132 stack(const stack& __q) : c(__q.c) {}
135 stack& operator=(const stack& __q) {c = __q.c; return *this;}
140 stack(stack&& __q)
145 stack& operator=(stack&& __q)
150 explicit stack(container_type&& __c) : c(_VSTD::move(__c)) {}
154 explicit stack(const container_type& __c) : c(__c) {}
158 explicit stack(const _Alloc& __a,
164 stack(const container_type& __c, const _Alloc& __a,
170 stack(const stack& __s, const _Alloc& __a,
177 stack(container_type&& __c, const _Alloc& __a,
183 stack(stack&& __s, const _Alloc& __a,
219 void swap(stack& __s)
229 operator==(const stack<T1, _C1>& __x, const stack<T1, _C1>& __y);
234 operator< (const stack<T1, _C1>& __x, const stack<T1, _C1>& __y);
241 stack(_Container)
242 -> stack<typename _Container::value_type, _Container>;
249 stack(_Container, _Alloc)
250 -> stack<typename _Container::value_type, _Container>;
256 operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
264 operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
272 operator!=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
280 operator> (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
288 operator>=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
296 operator<=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
307 swap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y)
314 struct _LIBCPP_TEMPLATE_VIS uses_allocator<stack<_Tp, _Container>, _Alloc>