TLtlb·Apr 5, 2018
In all my code, #include <vector> only appears once. That's because I have a file std_headers.h, which includes <stdlib>, <algorithm>, <string>, <vector>, and dozens more. With several #ifdefs for linux, FreeBSD, and Darwin and some embedded systems. Every other c++ file includes it. If you're curious: https://github.com/tlbtlbtlb/tlbcore/blob/master/common/std_...
I hate having a bunch of boilerplate at the top of each file.
In A meta-analysis of C++ projects