
30 Sep
2011
30 Sep
'11
2:21 p.m.
2011/9/30 Krzysztof Żelechowski
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.