Whole document tree
    

Whole document tree

Using the GNU Compiler Collection: C++ Extensions
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5. 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 section `Standard Predefined Macros' in The C Preprocessor).

5.1 Named Return Values in C++  Giving a name to C++ function return values.
5.2 Minimum and Maximum Operators in C++  C++ Minimum and maximum operators.
5.3 goto and Destructors in GNU C++  Goto is safe to use in C++ even when destructors are needed.
5.4 Declarations and Definitions in One Header  You can use a single C++ header file for both declarations and definitions.
5.5 Where's the Template?  Methods for ensuring that exactly one copy of each needed template instantiation is emitted.
5.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.
5.7 Type Abstraction using Signatures  You can specify abstract types to get subtype polymorphism independent from inheritance.
                        



This document was generated by root on January, 30 2002 using texi2html