3 ms·
> This is hardly an elegant convention. C++ has arr.back() which is much nicer to read, but has the downside that behaviour is undefined when the vector is emp
by robotresearcher 10y ago
> This is hardly an elegant convention.
C++ has arr.back() which is much nicer to read, but has the downside that behaviour is undefined when the vector is empty. Seems like interfaces always have pain points.