#include guard
construct in C and C++ for idempotent header inclusion
Facts
8 properties- Instance of
- software design pattern, programming idiom[2]
- Subclass of
- boilerplate[3]
- Part of
- header file[4]
- Facet of
- include directive[6]
- Has effect
- idempotence[8]
- Has part(s)
- include directive[5]
- Has parts
- include directive
- Replaced by
- #pragma once[7]
🏷️ Also known as
en include guard
en header guard
en #include guard
en macro guard
de Include-Wächter
fa اینکلود گارد
zh Include防範
🔖 Identifiers · 2
- Freebase ID
- /m/07mgsw
- Microsoft Academic ID (discontinued)
- 2776830355
🔗 Connections
Instance of 2
Facet of 1
Has effect 1
Has part(s) 1
Part of 1
Replaced by 1
← FactGrid item ID 1
← Replaces 1
Press Enter · cited answer in seconds