3 ms·
This is consistent with e.g. std::vector::at vs operator[]. The former throws an out-of-bounds exception, the latter has ub on bad index. Like it, don't like
by jlebar 8y ago
This is consistent with e.g. std::vector::at vs operator[]. The former throws an out-of-bounds exception, the latter has ub on bad index.
Like it, don't like it, that's cool. But it is consistent.