Title
Missing semantics for stack and queue comparison operators
Status
cd1
Section
[list.cons] [list.modifiers]
Submitter
Hans Bos

Created on 2003-06-07.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

There isn't any real doubt about what these operators are supposed to do, but we ought to spell it out.

Date: 2010-10-21.18:28:33

[ Kona: Matt provided wording. ]

Date: 2010-10-21.18:28:33

Proposed resolution:

Add the following new paragraphs after [list.cons] paragraph 3:

  operator!=

Returns: x.c != y.c

  operator>

Returns: x.c > y.c

  operator<=

Returns: x.c <= y.c

  operator>=

Returns: x.c >= y.c

Add the following paragraphs at the end of [list.modifiers]:

  operator==

Returns: x.c == y.c

  operator<

Returns: x.c < y.c

  operator!=

Returns: x.c != y.c

  operator>

Returns: x.c > y.c

  operator<=

Returns: x.c <= y.c

  operator>=

Returns: x.c >= y.c

Date: 2003-06-07.00:00:00

Sections [list.cons] and [list.modifiers] list comparison operators (==, !=, <, <=, >, =>) for queue and stack. Only the semantics for queue::operator== ([list.cons] par2) and queue::operator< ([list.cons] par3) are defined.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2532
2010-10-21 18:28:33adminsetmessages: + msg2531
2010-10-21 18:28:33adminsetmessages: + msg2530
2003-06-07 00:00:00admincreate