Skip to content

Commit ba757bc

Browse files
committed
[stack.syn] Move <stack> synopsis after <queue> synopsis.
Fixes #355
1 parent ab93130 commit ba757bc

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

source/containers.tex

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7839,6 +7839,32 @@
78397839
}
78407840
\end{codeblock}
78417841

7842+
\rSec2[stack.syn]{Header \tcode{<stack>} synopsis}%
7843+
\indexlibrary{\idxhdr{stack}}
7844+
7845+
\begin{codeblock}
7846+
#include <initializer_list>
7847+
7848+
namespace std {
7849+
7850+
template <class T, class Container = deque<T> > class stack;
7851+
template <class T, class Container>
7852+
bool operator==(const stack<T, Container>& x,const stack<T, Container>& y);
7853+
template <class T, class Container>
7854+
bool operator< (const stack<T, Container>& x,const stack<T, Container>& y);
7855+
template <class T, class Container>
7856+
bool operator!=(const stack<T, Container>& x,const stack<T, Container>& y);
7857+
template <class T, class Container>
7858+
bool operator> (const stack<T, Container>& x,const stack<T, Container>& y);
7859+
template <class T, class Container>
7860+
bool operator>=(const stack<T, Container>& x,const stack<T, Container>& y);
7861+
template <class T, class Container>
7862+
bool operator<=(const stack<T, Container>& x,const stack<T, Container>& y);
7863+
template <class T, class Container>
7864+
void swap(stack<T, Container>& x, stack<T, Container>& y) noexcept(noexcept(x.swap(y)));
7865+
}
7866+
\end{codeblock}
7867+
78427868
\rSec2[queue]{Class template \tcode{queue}}
78437869

78447870
\rSec3[queue.defn]{\tcode{queue} definition}
@@ -8388,32 +8414,6 @@
83888414
\tcode{deque}~(\ref{deque})
83898415
can be used.
83908416

8391-
\rSec3[stack.syn]{Header \tcode{<stack>} synopsis}%
8392-
\indexlibrary{\idxhdr{stack}}
8393-
8394-
\begin{codeblock}
8395-
#include <initializer_list>
8396-
8397-
namespace std {
8398-
8399-
template <class T, class Container = deque<T> > class stack;
8400-
template <class T, class Container>
8401-
bool operator==(const stack<T, Container>& x,const stack<T, Container>& y);
8402-
template <class T, class Container>
8403-
bool operator< (const stack<T, Container>& x,const stack<T, Container>& y);
8404-
template <class T, class Container>
8405-
bool operator!=(const stack<T, Container>& x,const stack<T, Container>& y);
8406-
template <class T, class Container>
8407-
bool operator> (const stack<T, Container>& x,const stack<T, Container>& y);
8408-
template <class T, class Container>
8409-
bool operator>=(const stack<T, Container>& x,const stack<T, Container>& y);
8410-
template <class T, class Container>
8411-
bool operator<=(const stack<T, Container>& x,const stack<T, Container>& y);
8412-
template <class T, class Container>
8413-
void swap(stack<T, Container>& x, stack<T, Container>& y) noexcept(noexcept(x.swap(y)));
8414-
}
8415-
\end{codeblock}
8416-
84178417
\rSec3[stack.defn]{\tcode{stack} definition}
84188418

84198419
\begin{codeblock}

0 commit comments

Comments
 (0)