ram
10/22/2008 1:59:00 PM
* Tong * <sun_tong_001@users.sourceforge.net> writes:
>it will go away. but how can I find which exactly .h file defines the
>type off_t?
The question still is open:
In C++, we have certain »parts« of the language (including the
standard library) that require certain include directives.
These parts include:
- names
- operators
- preprocessor names
. (Did I miss some part type?)
Now, given any part, say, »fmtflags«¹, one would like to know
which include directive is required.
This can not be tried by using a C++ implementation, because
some include directives might declare the part by coincidence,
but not because ISO/IEC 14882:2003(E) requires them to do so.
One would like to have a means to look-up each part, a list
of all those parts (possibly with their fully qualified name),
where each entry gives a specific include directive that is
guaranteed by ISO/IEC 14882:2003(E) to declare this part.
boolalpha ::std::boolalpha #include <ios>
fmtflags ::std::ios::fmtflags¹ #include <ios>
ostream ::std::ostream #include <ostream>
setprecision #include <iomanip>
<< #include <iostream>
.... ... ...
So, the question is, where to find such a list, or whether
there is a simple procedure to get the last column from the
first one.
1) I am not sure about »fmtflags«, several sources include
different »fmtflags«, such as »::std::fmtflags«,
»::std::ios::fmtflags«, and »::std::ios_base::fmtflags«.
I do not know, whether all these names are being declared
by the standard library, and when to use which one, but
such a list should list them all, if there are several
»fmtflags«.