名前空間
変種
操作

std::ranges::iota_view<W, Bound>::sentinel

From cppreference.com
< cpp‎ | ranges‎ | iota view
 
 
Rangesライブラリ
Rangeアダプタ
 
 
struct /*sentinel*/;
(説明用*)

ranges::iota_view<W, Bound>::sentinel は、ranges::iota_view<W, Bound>end() によって返される到達可能なセンチネルの型です。

目次

[編集] データメンバ

メンバ 定義
Bound bound_ センチネル値
(説明用のメンバオブジェクト*)

[編集] メンバ関数

std::ranges::iota_view::sentinel::sentinel

/*sentinel*/() = default;
(1) (C++20以降)
constexpr explicit /*sentinel*/( Bound bound );
(2) (C++20以降)
1) bound_ を値初期化します。
2) bound_bound で初期化します。

[編集] 非メンバ関数

operator==(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)

friend constexpr bool operator==( const /*iterator*/& x,
                                  const /*sentinel*/& y );
(C++20以降)

x.value_ == y.bound_ を返します。

!= 演算子は operator== から合成される。

この関数は、通常の 修飾なし または 修飾あり の名前探索では見えず、sentinel が引数に関連付けられたクラスである場合にのみ、引数依存の名前探索 で見つけることができます。

operator-(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)

friend constexpr std::iter_difference_t<W>

    operator-(const /*iterator*/& x, const /*sentinel*/& y)

    requires std::sized_sentinel_for<Bound, W>;
(1) (C++20以降)
friend constexpr std::iter_difference_t<W>

    operator-(const /*sentinel*/& x, const /*iterator*/& y)

    requires std::sized_sentinel_for<Bound, W>;
(2) (C++20以降)
1) x.value_ - y.bound_ を返します。
2) -(y.value_ - x.bound_ ) を返します。

これらの関数は、通常の 修飾なし または 修飾あり の名前探索では見えず、sentinel が引数に関連付けられたクラスである場合にのみ、引数依存の名前探索 で見つけることができます。

[編集]

English 日本語 中文(简体) 中文(繁體)