• Home
  • Raw
  • Download

Lines Matching full:stack

2 //===---------------------------- stack -----------------------------------===//
15 stack synopsis
21 class stack
34 stack() = default;
35 ~stack() = default;
37 stack(const stack& q) = default;
38 stack(stack&& q) = default;
40 stack& operator=(const stack& q) = default;
41 stack& operator=(stack&& q) = default;
43 explicit stack(const container_type& c);
44 explicit stack(container_type&& c);
45 template <class Alloc> explicit stack(const Alloc& a);
46 template <class Alloc> stack(const container_type& c, const Alloc& a);
47 template <class Alloc> stack(container_type&& c, const Alloc& a);
48 template <class Alloc> stack(const stack& c, const Alloc& a);
49 template <class Alloc> stack(stack&& c, const Alloc& a);
61 void swap(stack& c) noexcept(is_nothrow_swappable_v<Container>)
65 stack(Container) -> stack<typename Container::value_type, Container>; // C++17
68 stack(Container, Allocator) -> stack<typename Container::value_type, Container>; // C++17
71 bool operator==(const stack<T, Container>& x, const stack<T, Container>& y);
73 bool operator< (const stack<T, Container>& x, const stack<T, Container>& y);
75 bool operator!=(const stack<T, Container>& x, const stack<T, Container>& y);
77 bool operator> (const stack<T, Container>& x, const stack<T, Container>& y);
79 bool operator>=(const stack<T, Container>& x, const stack<T, Container>& y);
81 bool operator<=(const stack<T, Container>& x, const stack<T, Container>& y);
84 void swap(stack<T, Container>& x, stack<T, Container>& y)
100 template <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TEMPLATE_VIS stack;
105 operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
110 operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y);
113 class _LIBCPP_TEMPLATE_VIS stack
128 stack()
133 stack(const stack& __q) : c(__q.c) {}
136 stack& operator=(const stack& __q) {c = __q.c; return *this;}
141 stack(stack&& __q)
146 stack& operator=(stack&& __q)
151 explicit stack(container_type&& __c) : c(_VSTD::move(__c)) {}
155 explicit stack(const container_type& __c) : c(__c) {}
159 explicit stack(const _Alloc& __a,
165 stack(const container_type& __c, const _Alloc& __a,
171 stack(const stack& __s, const _Alloc& __a,
178 stack(container_type&& __c, const _Alloc& __a,
184 stack(stack&& __s, const _Alloc& __a,
220 void swap(stack& __s)
230 operator==(const stack<T1, _C1>& __x, const stack<T1, _C1>& __y);
235 operator< (const stack<T1, _C1>& __x, const stack<T1, _C1>& __y);
242 stack(_Container)
243 -> stack<typename _Container::value_type, _Container>;
250 stack(_Container, _Alloc)
251 -> stack<typename _Container::value_type, _Container>;
257 operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
265 operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
273 operator!=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
281 operator> (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
289 operator>=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
297 operator<=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
308 swap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y)
315 struct _LIBCPP_TEMPLATE_VIS uses_allocator<stack<_Tp, _Container>, _Alloc>