Home Segments Index Top Previous Next

693: Mainline

Because there are many header files for the object code in the standard library file, each header file covers only a fraction of the functions in the standard library file. The reason is that many C++ compilers bring every function mentioned in a header file into your program, even those functions that you do not use. By creating multiple header files, a library's author makes it possible for you to use the library file selectively, reducing the degree to which your programs are bloated with functions that you do not use.