std::stack stack†LIFO(Last In First Out)方式のスタックとして値を格納する. dequeを基底としたコンテナアダプタ. クラスのテンプレート仕様は, template < class T, class Container = deque<T> > class stack; となっており, 定義時にデータ型,基底コンテナ(デフォルトはdeque)を指定することができる. インクルード†#include <stack> 初期化(コンストラクタ)†explicit stack(const Container& ctnr = Container()); メンバ関数†
|