Search:

Type: Posts; User: CornedBee

Search: Search took 0.08 seconds.

  1. Replies
    30
    Views
    10,548

    Completely irrelevant. Whether the method is...

    Completely irrelevant. Whether the method is called inc() or operator ++, whether it's called add() or operator +=, the principle is that there are cases when incrementing makes sense, but adding...
  2. Replies
    30
    Views
    10,548

    No, it is not. It is a logical consequence of the...

    No, it is not. It is a logical consequence of the fact that these classes, by design, do not support arbitrary jumps other than by repeatedly using increment. It makes sense, it's intuitive.
    I don't...
  3. Replies
    30
    Views
    10,548

    Have you tried my example yet? There are classes...

    Have you tried my example yet? There are classes that quite reasonably overload ++, but not += or +. Using x=x+1 with those results in a compile error.


    I do ask. How do you do symbolic constants...
  4. Replies
    30
    Views
    10,548

    Try this one: std::list< int > ints;...

    Try this one:

    std::list< int > ints;
    ints.push_back(1); ints.push_back(2); ints.push_back(3);

    for(std::list< int >::iterator it = ints.begin(); it != ints.end(); ++it) {
    std::cout << *it <<...
  5. Replies
    30
    Views
    10,548

    It's interesting that you claim the linked list...

    It's interesting that you claim the linked list standard container, as well as instream and outstream iterators are poorly designed. Personally, I don't think so, but I'm sure you know what you're...
Results 1 to 5 of 5