4 ms·
So that they don't misuse it. A good example is vec.empty(). There's no point calling vec.empty() without checking its return value. It helps distinguish noun v
by halayli 3y ago
So that they don't misuse it. A good example is vec.empty(). There's no point calling vec.empty() without checking its return value. It helps distinguish noun vs verb.
- deleted 3y ago[deleted]
- delta_p_delta_x 3y agoThis is really a mis-design; the proper name for the function should ask a question: `std::vector::is_empty()`.