4 ms·
Comparing pointers not coming from the same allocation is undefined behaviour per C++ standard.
by enedil 6y ago
Comparing pointers not coming from the same allocation is undefined behaviour per C++ standard.
- gpderetta 6y ago... unless you use std::less and friends which guarantees an unspecified total order among all pointers of the same type. Std::set uses it of course.