2011/9/30 Krzysztof Żelechowski <giecrilj@stegny.2a.pl>
I doubt there may be a sequence of length 0 at NULL. How would you allocate
such a sequence?
I believe this code is valid:
#include <vector>
int main() {
const int *begin = 0, *end = 0;
std::vector<int> v(begin, end);
}
NULL pointer is a valid pass-the-end iterator here.
Roman Perepelitsa.