std::ranges::elements_view<V,F>:: iterator <Const>:: base
From cppreference.net
<
cpp
|
ranges
|
elements view
|
iterator
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::ranges::elements_view
| Member functions | ||||
|
(C++26)
|
||||
| Nested classes | ||||
| Iterator | ||||
|
elements_view::
iterator
::base
|
||||
| Sentinel | ||||
|
constexpr
const
ranges::
iterator_t
<
Base
>
&
base
(
)
const
&
noexcept
;
|
(1) | (C++20以降) |
|
constexpr
ranges::
iterator_t
<
Base
>
base
(
)
&&
;
|
(2) | (C++20以降) |
基盤となるイテレータを返します。
1)
基盤となるイテレータへの参照を返します。
2)
結果を基盤となるイテレータからムーブ構築します。
目次 |
パラメータ
(なし)
戻り値
1)
基盤となるイテレータへの参照。
1)
基盤となるイテレータからムーブ構築されたイテレータ。
例
|
このセクションは不完全です
理由: 例がありません |
不具合報告
以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。
| DR | 適用対象 | 公開時の動作 | 正しい動作 |
|---|---|---|---|
| LWG 3533 | C++20 |
base
の
const
&
オーバーロードは基盤イテレータのコピーを返す
|
参照を返す |
| LWG 3593 | C++20 |
base
の
const
&
オーバーロードはnoexceptではない可能性がある
|
noexceptに変更 |