「std::vector」の版間の差分
提供: C++入門
| 行16: | 行16: | ||
* [[std::vector シンプルな例]] | * [[std::vector シンプルな例]] | ||
| + | |||
| + | == インタフェース == | ||
| + | |||
| + | {|class="wikitable" | ||
| + | |+ std::vector | ||
| + | ! メンバ | ||
| + | ! 意味 | ||
| + | |- | ||
| + | | [[std::vector::vector|constructor]] | ||
| + | | コンストラクタ | ||
| + | |- | ||
| + | | destrctor | ||
| + | | デストラクタ | ||
| + | |- | ||
| + | | [[std::vector::operator=|operator=]] | ||
| + | | operator= | ||
| + | |} | ||
== 関連項目 == | == 関連項目 == | ||
2013年3月23日 (土) 13:38時点における版
std::vector は、C++ライブラリ で提供されるtemplateを利用した動的な配列です。
読み方
- std::vector
- えすてぃーでぃー べくたー
概要
C++ の配列は、サイズをプログラマが管理しますが、std::vector は、配列のサイズを意識せずに、プログラミングできます。
インタフェース
| メンバ | 意味 |
|---|---|
| constructor | コンストラクタ |
| destrctor | デストラクタ |
| operator= | operator= |