Home

Search IconIcon to open search

std::vector

Doesn’t check if index is valid or not when using data[i]. Use .at(i) to throw an exception if index is invalid.

.front() and .back() on an empty vector is UB. I’m not sure how I feel about this. Use .empty() to check for emptiness.

Some useful methods: