6.x Chapter 6 summary and quiz

주홍영·2022년 3월 12일
0

Learncpp.com

목록 보기
73/199

https://www.learncpp.com/cpp-tutorial/chapter-6-summary-and-quiz/

이번 챕터에서는 챕터6에 대한 요약이다
따라서 대부분 내용은 생략하고 Quiz의 한 부분만 다뤄보겠다

inline constexpr 의 용법에 대해서 나왔따
Thus, an inline variable is one that is allowed to be defined in multiple files without violating the one definition rule. Inline global variables have external linkage by default.

즉, global constants를 복수의 files에서 공유할 때 사용하는 것으로 나오는데
왜 inline을 써야하는지는 정확하게 모르겠다

profile
청룡동거주민

0개의 댓글