How to include all formatting header files?

In Java, if you wanted all the classes in the namespace, you could just do this:

import com.bobdylan.*;

In any case, I can get a result similar to:

import boost.*;

(except C ++)

+3
source share
2 answers

Not automatically. You can write one header file that # includes all the other headers that interest you, and then just # include this, but that it - C ++ does not have an import function, for example java.

+3
source

You probably don't want # to include all of Boost - this is a very large library, so just specify what you need.

, , ++ Java. *, , , , .

+1

Source: https://habr.com/ru/post/1730627/


All Articles