Search:

Type: Posts; User: King Mir

Search: Search took 0.02 seconds.

  1. Replies
    31
    Views
    10,169

    Yeah, still getting used to those being in the...

    Yeah, still getting used to those being in the language.
  2. Replies
    31
    Views
    10,169

    A temporary binds to a const reference, never a...

    A temporary binds to a const reference, never a non-const reference. And a function that returns an iterator creates a temporary. It's also possible to create a temporary with a constructor call or...
  3. Replies
    31
    Views
    10,169

    In addition to Elysia's example, any time an...

    In addition to Elysia's example, any time an iterator is created as the return value of a function, that iterator is const, because it's a temporary, and must use the const version of the operator.
Results 1 to 3 of 3