The content of a header are copied into our program text by the preprocessor. When we #include a file, it is as if the exact header, it is equivalent to placing the same using declaration in every program that includes the header whether that program wants the using declaration or not. In general, is is good pratice for for headers do define only what is strictly necessary.

Reference
C++ Primer 4th P.80

相关文章:

  • 2021-06-17
  • 2021-12-10
  • 2022-12-23
  • 2022-01-13
  • 2021-10-10
  • 2021-09-20
  • 2021-11-03
  • 2022-01-30
猜你喜欢
  • 2021-07-26
  • 2021-12-11
  • 2021-09-19
  • 2022-02-06
  • 2021-08-29
  • 2021-06-08
相关资源
相似解决方案