3 ms·
The iterator for a vector is a class... although quite a thin wrapper around a pointer, it is still a class. The difficulty to handle errors in C++ is generall
by alexchamberlain 14y ago
The iterator for a vector is a class... although quite a thin wrapper around a pointer, it is still a class.
The difficulty to handle errors in C++ is generally bad API design left over from the C days. Exceptions used correctly make error handling exceptionally easy.