CPP08 1.0
|
#include <MutantStack.hpp>
公開型 | |
typedef Container::iterator | iterator |
typedef Container::const_iterator | const_iterator |
typedef Container::reverse_iterator | reverse_iterator |
typedef Container::const_reverse_iterator | const_reverse_iterator |
公開メンバ関数 | |
MutantStack () | |
Default Constructor | |
MutantStack (const MutantStack< T, Container > &other) | |
Copy constructor. | |
void | swap (MutantStack &other) |
Swaps the contents of two MutantStack objects. | |
MutantStack< T, Container > & | operator= (MutantStack< T, Container > other) |
Assignment operator (copy-and-swap idiom). | |
~MutantStack () | |
Destructor | |
iterator | begin () |
Returns an iterator pointing to the bottom (first element) of the stack. | |
iterator | end () |
Returns an iterator pointing to the end of the stack (after the last element). | |
const_iterator | begin () const |
Returns a const iterator pointing to the bottom (first element) of the stack. | |
const_iterator | end () const |
Returns a const iterator pointing to the end of the stack (after the last element). | |
reverse_iterator | rbegin () |
Returns a reverse iterator pointing to the top (last element) of the stack. | |
reverse_iterator | rend () |
Returns a reverse iterator pointing to the second-to-last element in the stack. | |
const_reverse_iterator | rbegin () const |
Returns a const reverse iterator pointing to the top (last element) of the stack. | |
const_reverse_iterator | rend () const |
Returns a const reverse iterator pointing to the second-to-last element in the stack. | |
![]() | |
T | emplace (T... args) |
T | empty (T... args) |
T | operator= (T... args) |
T | pop (T... args) |
T | push (T... args) |
T | size (T... args) |
T | stack (T... args) |
T | swap (T... args) |
T | top (T... args) |
T | ~stack (T... args) |
MutantStack.hpp の 34 行目に定義があります。
typedef Container::const_iterator MutantStack< T, Container >::const_iterator |
MutantStack.hpp の 76 行目に定義があります。
typedef Container::const_reverse_iterator MutantStack< T, Container >::const_reverse_iterator |
MutantStack.hpp の 78 行目に定義があります。
typedef Container::iterator MutantStack< T, Container >::iterator |
MutantStack.hpp の 75 行目に定義があります。
typedef Container::reverse_iterator MutantStack< T, Container >::reverse_iterator |
MutantStack.hpp の 77 行目に定義があります。
|
inline |
Default Constructor
MutantStack.hpp の 39 行目に定義があります。
|
inline |
|
inline |
Destructor
MutantStack.hpp の 70 行目に定義があります。
|
inline |
Returns an iterator pointing to the bottom (first element) of the stack.
MutantStack.hpp の 81 行目に定義があります。
|
inline |
Returns a const iterator pointing to the bottom (first element) of the stack.
MutantStack.hpp の 86 行目に定義があります。
|
inline |
Returns an iterator pointing to the end of the stack (after the last element).
MutantStack.hpp の 83 行目に定義があります。
|
inline |
Returns a const iterator pointing to the end of the stack (after the last element).
MutantStack.hpp の 88 行目に定義があります。
|
inline |
Assignment operator (copy-and-swap idiom).
1.Create a copy by passing the value.
2.Exchanging the contents of oneself with the contents of a copy.
3.When exiting the scope, 'other' is discarded and old data is released.
other | MutantStack object to be assigned. |
MutantStack.hpp の 64 行目に定義があります。
|
inline |
Returns a reverse iterator pointing to the top (last element) of the stack.
MutantStack.hpp の 91 行目に定義があります。
|
inline |
Returns a const reverse iterator pointing to the top (last element) of the stack.
MutantStack.hpp の 96 行目に定義があります。
|
inline |
Returns a reverse iterator pointing to the second-to-last element in the stack.
MutantStack.hpp の 93 行目に定義があります。
|
inline |
Returns a const reverse iterator pointing to the second-to-last element in the stack.
MutantStack.hpp の 98 行目に定義があります。
|
inline |
Swaps the contents of two MutantStack objects.
other | The MutantStack object to be swapped. |
MutantStack.hpp の 51 行目に定義があります。