There is no auto include behaviour.. by including <iostream>
you are indirectly including <cmath>
.
It's just the way that Microsoft implemented the C++ standard library, they wanted to use some <cmath>
functions in so they needed to include it in the header file.
I recommend you read this article.