Skip to content

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.

Where the book teaches it

Related terms

size_t and unsignedInteger overflow