Skip to content

Glossary: Algorithms Beyond the Basics in C++

static local variable

Also written: static

A variable declared inside a function with `static`; it is created on the first call and keeps its value between calls. It is handy for hiding a memo map inside a function so callers never see it.

Where the book teaches it