Glossary: Coding Interviews in C++
static_cast
Also written: static_cast<int>
A C++ conversion from one type to another, such as turning the unsigned `size()` into an `int` so `size() - 1` can be -1 on an empty vector.
Glossary: Coding Interviews in C++
Also written: static_cast<int>
A C++ conversion from one type to another, such as turning the unsigned `size()` into an `int` so `size() - 1` can be -1 on an empty vector.