C++ include guard

前端 未结 3 1204
轮回少年
轮回少年 2021-01-13 07:10

So I know how to place an include guard in my own header files with the standard

#ifndef ...
#define ...

Now, My question is about includin

3条回答
  •  别那么骄傲
    2021-01-13 07:31

    The STL library also has include guards and any good library should do the same.

    #ifndef _GLIBCXX_STRING
    #define _GLIBCXX_STRING 1
    

    This is from gcc's

提交回复
热议问题