Skip to content

Glossary: C++ Basics

#pragma once

Also written: pragma once

A line at the top of a header meaning "include this file only once per source file". Without it, including the header twice causes a redefinition error.

Where the book teaches it

Related terms

Header filePreprocessor