Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many header files are there in c++ standard?

In C89 there're 15 header files:

<assert.h>  <locale.h>  <stddef.h>  <ctype.h>  <math.h>
<stdio.h>  <errno.h>  <setjmp.h>  <stdlib.h>  <float.h>
<signal.h>  <string.h>  <limits.h>  <stdarg.h>  <time.h>

What about the c++ standard?

like image 550
tem Avatar asked Oct 15 '10 06:10

tem


1 Answers

33 C++-specific ones:

<algorithm>    <iomanip>    <list>      <queue>       <streambuf>
<bitset>       <ios>        <locale>    <set>         <string>
<complex>      <iosfwd>     <map>       <sstream>     <typeinfo>
<deque>        <iostream>   <memory>    <stack>       <utility>
<exception>    <istream>    <new>       <stdexcept>   <valarray>
<fstream>      <iterator>   <numeric>   <strstream>   <vector>
<functional>   <limits>     <ostream>

Plus the 18 borrowed from C:

<cassert> <ciso646> <csetjmp> <cstdio>  <ctime>
<cctype>  <climits> <csignal> <cstdlib> <cwchar>
<cerrno>  <clocale> <cstdarg> <cstring> <cwctype>
<cfloat>  <cmath>   <cstddef>

(<iso646.h>, <wchar.h>, and <wctype.h> were added to the C standard in 1995)

like image 96
Michael Burr Avatar answered Oct 06 '22 09:10

Michael Burr