المتغيرات
فضاءات التسمية
أفعال

std::{{{1}}}::operator++,+,+=,--,-,-=

من cppreference.com
{{{1}}}& operator++();
(1)
{{{1}}}& operator--();
(2)
{{{1}}} operator++( int );
(3)
{{{1}}} operator--( int );
(4)
{{{1}}} operator+( difference_type n ) const;
(5)
{{{1}}} operator-( difference_type n ) const;
(6)
{{{1}}}& operator+=( difference_type n );
(7)
{{{1}}}& operator-=( difference_type n );
(8)

Increments or decrements the iterator.

1-2) Pre-increments or pre-decrements by one respectively.
3-4) Post-increments or post-decrements by one respectively.
5-6) Returns an iterator which is advanced by ‎n‎ or ‎-n‎ positions respectively.
7-8) Advances the iterator by ‎n‎ or ‎-n‎ positions respectively.

[تعديل] Return value

1-2) *this
3-4) a copy of *this that was made before the change
5-6) {{{1}}}(base()+n) or {{{1}}}(base()-n) respectively.
7-8) *this

[تعديل] Example

[تعديل] See also

قالب:dsc tfun