What exactly are C++ modules?
问题 I've been following up C++ standardization and came across C++ modules idea. I could not find a good article on it. What exactly is it about? 回答1: Motivation The simplistic answer is that a C++ module is like a header that is also a translation unit . It is like a header in that you can use it (with import , which is a new contextual keyword) to gain access to declarations from a library. Because it is a translation unit (or several for a complicated module), it is compiled separately and