Compilers for these languages have a concept of dead code elimination. If you didnt use a symbol from a library, it gets removed.
Instead of importing the whole library in C++ is it possible to just import a single class from the library? #c++
Instead of importing the whole library in C++ is it possible to just import a single class from the library? #c++
You must be logged in to comment.
Compilers for these languages have a concept of dead code elimination. If you didnt use a symbol from a library, it gets removed.
What you want to do is called Modules in c++, which is only available in c++20/23. I don’t exactly recall the right one. You can look it up tho.