You are here |
www.reedbeta.com | ||
| | | |
ericniebler.com
|
|
| | | | Way back in 1999, when the ink on the first C++ standard was still damp, Herb Sutter posed a GoTW puzzler in the still extant C++ Report (RIP): When Is a Container Not a Container? In that article,... | |
| | | |
brevzin.github.io
|
|
| | | | Let's say we had a range, represented by a pair of pointers, that we wanted to copy into another pointer. We might write that like so: | |
| | | |
www.foonathan.net
|
|
| | | | You probably know that C++20 adds ranges. Finally we can write copy(container, dest) instead of copy(container.begin(), container.end(), dest)! Ranges also do a lot more. Among other things, they add a new way of specifying an iterator to the end - sentinels. | |
| | | |
jawher.me
|
|
| |