std::vector::data
提供:cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| T* data(); |
(C + + 11以来) | |
| const T* data() const; |
(C + + 11以来) | |
要素記憶として基になる配列へのポインタを返します。ポインタが範囲
[data(); data() + size())、コンテナが空であっても、常に有効な範囲であるようなものである.Original:
Returns pointer to the underlying array serving as element storage. The pointer is such that range
[data(); data() + size()) is always a valid range, even if the container is empty.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] パラメータ
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 値を返します
配下の要素ストレージへのポインタ。用の非空の容器、返し&front()
Original:
Pointer to the underlying element storage. For non-empty containers, returns &front()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 複雑
定数.
Original:
Constant.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例外
[編集] も参照してください
| 最初の要素にアクセスします Original: access the first element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| 末尾の要素にアクセスします (パブリックメンバ関数) | |