Skip to content

Glossary: Software Design Patterns in C++

#pragma once

A line at the top of a header file that tells the compiler to include that file only once per build. It prevents 'defined twice' errors when several files include the same header.

Where the book teaches it

Related terms

Inline