Title
Consider adding increment and decrement operators to std::fpos< T >
Status
nad
Section
[fpos]
Submitter
PremAnand M. Rao

Created on 2001-08-27.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The LWG believes this is a request for extension, not a defect report. Additionally, nobody saw a clear need for this extension; fpos is used only in very limited ways.

Date: 2010-10-21.18:28:33

Proposed resolution:

Table 88 (section 27.4.3) -- Position type requirements be updated to include increment and decrement operators.

expression        return type     operational    note

++p               fpos&           p += O(1)
p++               fpos            { P tmp = p;
                                    ++p;
                                    return tmp; }
--p               fpos&           p -= O(1)
p--               fpos            { P tmp = p;
                                    --p;
                                    return tmp; }
Date: 2001-08-27.00:00:00

Increment and decrement operators are missing from Table 88 -- Position type requirements in [fpos].

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2261
2010-10-21 18:28:33adminsetmessages: + msg2260
2001-08-27 00:00:00admincreate