#topicpath ////////////////////////////////////////////////////////////////////////////// * 目次 [#aa38371b] #contents(); ////////////////////////////////////////////////////////////////////////////// * std::array : 固定長配列 [#yd0410fc] - std::vector が可変長配列であるのに対し、 std::array は固定長配列になる - 組み込み配列同様、[] 演算子を使用出来る。 ////////////////////////////////////////////////////////////////////////////// * std::forward_list : 単方向リスト [#ac02db07] - 単方向にのみ辿れるリスト ////////////////////////////////////////////////////////////////////////////// * [[std::string>Lang/C++/C++11/コンテナ/string]] [#o4ecc420] → [[std::string>Lang/C++/C++11/コンテナ/string]] ////////////////////////////////////////////////////////////////////////////// * std::unordered_set : 順序なし集合(重複不可) [#ibda44d6] ////////////////////////////////////////////////////////////////////////////// * std::unordered_multilist : 順序なし集合(重複可) [#y13cd77a] ////////////////////////////////////////////////////////////////////////////// * std::unordered_map : 順序なし連想配列(重複不可) [#hf81527c] ////////////////////////////////////////////////////////////////////////////// * std::unordered_multimap : 順序なし連想配列(重複可) [#b6697d84] ////////////////////////////////////////////////////////////////////////////// * queue [#jef2709a] ** queue [#c380237b] #include <queue> std::queue<string> q; q.push( "hoge" ); q.push( "fuga" ); while( !q.empty() ) { std::cout << q.front() << std::endl; q.pop(); } - コピー・ムーブが可能 - pop() は値を返さない ** priprity_queue [#i6594f09] #include <queue> std::priority_queue<string> q; q.push( "hoge" ); q.push( "fuga" ); q.push( "foo" ); q.push( "bar" ); while( !q.empty() ) { std::cout << q.front() << std::endl; q.pop(); } - コピー・ムーブが可能 - pop() は値を返さない