Skip to content

Glossary: Software Design Patterns in C++

Inline

Also written: inline variable, inline function

A keyword that lets a function or variable be defined in a header and included by several `.cpp` files without a 'defined twice' error. An inline variable is one object shared by every file.

Where the book teaches it

Related terms

#pragma once