Somebody explain me this ( I can't find a reason )

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: Somebody explain me this ( I can't find a reason )

Post by Dio »

Yes, it is simpler. The type of .cbegin is trivially inferred by the reader. Explicitly using some typedef here is harder to read (is there some subtle thing going on here that needs this extra complexity?) and more prone to error (is it the right type?).
Post Reply