CPP08 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
MutantStack< T, Container > クラステンプレート

#include <MutantStack.hpp>

MutantStack< T, Container > の継承関係図
Inheritance graph
MutantStack< T, Container > 連携図
Collaboration graph

公開型

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.
 
- 基底クラス std::stack に属する継承公開メンバ関数
emplace (T... args)
 
empty (T... args)
 
operator= (T... args)
 
pop (T... args)
 
push (T... args)
 
size (T... args)
 
stack (T... args)
 
swap (T... args)
 
top (T... args)
 
~stack (T... args)
 

詳解

template<typename T, typename Container = std::deque<T>>
class MutantStack< T, Container >

MutantStack.hpp34 行目に定義があります。

型定義メンバ詳解

◆ const_iterator

template<typename T , typename Container = std::deque<T>>
typedef Container::const_iterator MutantStack< T, Container >::const_iterator

MutantStack.hpp76 行目に定義があります。

◆ const_reverse_iterator

template<typename T , typename Container = std::deque<T>>
typedef Container::const_reverse_iterator MutantStack< T, Container >::const_reverse_iterator

MutantStack.hpp78 行目に定義があります。

◆ iterator

template<typename T , typename Container = std::deque<T>>
typedef Container::iterator MutantStack< T, Container >::iterator

MutantStack.hpp75 行目に定義があります。

◆ reverse_iterator

template<typename T , typename Container = std::deque<T>>
typedef Container::reverse_iterator MutantStack< T, Container >::reverse_iterator

MutantStack.hpp77 行目に定義があります。

構築子と解体子

◆ MutantStack() [1/2]

template<typename T , typename Container = std::deque<T>>
MutantStack< T, Container >::MutantStack ( )
inline

Default Constructor

MutantStack.hpp39 行目に定義があります。

◆ MutantStack() [2/2]

template<typename T , typename Container = std::deque<T>>
MutantStack< T, Container >::MutantStack ( const MutantStack< T, Container > &  other)
inline

Copy constructor.

引数
otherMutantStack object to be copied.

MutantStack.hpp45 行目に定義があります。

◆ ~MutantStack()

template<typename T , typename Container = std::deque<T>>
MutantStack< T, Container >::~MutantStack ( )
inline

Destructor

MutantStack.hpp70 行目に定義があります。

関数詳解

◆ begin() [1/2]

template<typename T , typename Container = std::deque<T>>
iterator MutantStack< T, Container >::begin ( )
inline

Returns an iterator pointing to the bottom (first element) of the stack.

MutantStack.hpp81 行目に定義があります。

◆ begin() [2/2]

template<typename T , typename Container = std::deque<T>>
const_iterator MutantStack< T, Container >::begin ( ) const
inline

Returns a const iterator pointing to the bottom (first element) of the stack.

MutantStack.hpp86 行目に定義があります。

◆ end() [1/2]

template<typename T , typename Container = std::deque<T>>
iterator MutantStack< T, Container >::end ( )
inline

Returns an iterator pointing to the end of the stack (after the last element).

MutantStack.hpp83 行目に定義があります。

◆ end() [2/2]

template<typename T , typename Container = std::deque<T>>
const_iterator MutantStack< T, Container >::end ( ) const
inline

Returns a const iterator pointing to the end of the stack (after the last element).

MutantStack.hpp88 行目に定義があります。

◆ operator=()

template<typename T , typename Container = std::deque<T>>
MutantStack< T, Container > & MutantStack< T, Container >::operator= ( MutantStack< T, Container >  other)
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.

引数
otherMutantStack object to be assigned.
戻り値
Reference to *this.

MutantStack.hpp64 行目に定義があります。

◆ rbegin() [1/2]

template<typename T , typename Container = std::deque<T>>
reverse_iterator MutantStack< T, Container >::rbegin ( )
inline

Returns a reverse iterator pointing to the top (last element) of the stack.

MutantStack.hpp91 行目に定義があります。

◆ rbegin() [2/2]

template<typename T , typename Container = std::deque<T>>
const_reverse_iterator MutantStack< T, Container >::rbegin ( ) const
inline

Returns a const reverse iterator pointing to the top (last element) of the stack.

MutantStack.hpp96 行目に定義があります。

◆ rend() [1/2]

template<typename T , typename Container = std::deque<T>>
reverse_iterator MutantStack< T, Container >::rend ( )
inline

Returns a reverse iterator pointing to the second-to-last element in the stack.

MutantStack.hpp93 行目に定義があります。

◆ rend() [2/2]

template<typename T , typename Container = std::deque<T>>
const_reverse_iterator MutantStack< T, Container >::rend ( ) const
inline

Returns a const reverse iterator pointing to the second-to-last element in the stack.

MutantStack.hpp98 行目に定義があります。

◆ swap()

template<typename T , typename Container = std::deque<T>>
void MutantStack< T, Container >::swap ( MutantStack< T, Container > &  other)
inline

Swaps the contents of two MutantStack objects.

引数
otherThe MutantStack object to be swapped.

MutantStack.hpp51 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: