[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
7 Extensions to the C++ Language
The GNU compiler provides these extensions to the C++ language (and you
can also use most of the C language extensions in your C++ programs). If you
want to write code that checks whether these features are available, you can
test for the GNU compiler the same way as for C programs: check for a
predefined macro __GNUC__
. You can also use __GNUG__
to
test specifically for GNU C++ (see Predefined Macros in The GNU C Preprocessor).
7.1 When is a Volatile C++ Object Accessed? | What constitutes an access to a volatile object. | |
7.2 Restricting Pointer Aliasing | C99 restricted pointers and references. | |
7.3 Vague Linkage | Where G++ puts inlines, vtables and such. | |
7.4 #pragma interface and implementation | You can use a single C++ header file for both declarations and definitions. | |
7.5 Where’s the Template? | Methods for ensuring that exactly one copy of each needed template instantiation is emitted. | |
7.6 Extracting the function pointer from a bound pointer to member function | You can extract a function pointer to the method denoted by a ‘->*’ or ‘.*’ expression. | |
7.7 C++-Specific Variable, Function, and Type Attributes | Variable, function, and type attributes for C++ only. | |
7.8 Function Multiversioning | Declaring multiple function versions. | |
7.9 Namespace Association | Strong using-directives for namespace association. | |
7.10 Type Traits | Compiler support for type traits | |
7.11 Java Exceptions | Tweaking exception handling to work with Java. | |
7.12 Deprecated Features | Things will disappear from G++. | |
7.13 Backwards Compatibility | Compatibilities with earlier definitions of C++. |
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on October 19, 2013 using texi2html 5.0.