operator+, operator- (std::basic_const_iterator)
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Non-member functions | ||||
|
(C++23)
(C++23)
(C++23)
(C++23)
|
||||
|
operator+
(C++23)
|
||||
|
(C++23)
|
||||
| Helper classes | ||||
|
friend
constexpr
basic_const_iterator
operator
+
(
const
basic_const_iterator
&
i, difference_type n
)
|
(1) | (C++23以降) |
|
friend
constexpr
basic_const_iterator
operator
+
(
difference_type n,
const
basic_const_iterator
&
i
)
|
(2) | (C++23以降) |
|
friend
constexpr
basic_const_iterator
operator
-
(
const
basic_const_iterator
&
i, difference_type n
)
|
(3) | (C++23以降) |
イテレータ i を n だけインクリメントまたはデクリメントして返します。
n
個分後方に進んだイテレータを返します。
これらの関数は通常の unqualified lookup や qualified lookup では可視化されず、 argument-dependent lookup によってのみ発見され、その際 std:: basic_const_iterator < Iter > が引数の関連クラスである場合に限られます。
戻り値
例
|
このセクションは不完全です
理由: 例がありません |