136ac495dSmrg /* 2*8feb0f0bSmrg Copyright (C) 2001-2020 Free Software Foundation, Inc. 336ac495dSmrg See license.html for license. 436ac495dSmrg 536ac495dSmrg This just provides documentation for stuff that doesn't need to be in the 636ac495dSmrg source headers themselves. It is a ".cc" file for the sole cheesy reason 736ac495dSmrg that it triggers many different text editors into doing Nice Things when 836ac495dSmrg typing comments. However, it is mentioned nowhere except the *cfg.in files. 936ac495dSmrg 1036ac495dSmrg Some actual code (declarations) is exposed here, but no compiler ever 1136ac495dSmrg sees it. The decls must be visible to doxygen, and sometimes their real 1236ac495dSmrg declarations are not visible, or not visible in a way we want. 1336ac495dSmrg 1436ac495dSmrg Pieces separated by '// //' lines will usually not be presented to the 1536ac495dSmrg user on the same page. 1636ac495dSmrg */ 1736ac495dSmrg 1836ac495dSmrg // // // // // // // // // // // // // // // // // // // // // // // // 1936ac495dSmrg /** @namespace std 2036ac495dSmrg * @brief ISO C++ entities toplevel namespace is std. 2136ac495dSmrg */ 22*8feb0f0bSmrg /** @namespace std 23*8feb0f0bSmrg * @brief ISO C++ inline namespace for literal suffixes. 24*8feb0f0bSmrg */ 2536ac495dSmrg /** @namespace std::__detail 2636ac495dSmrg * @brief Implementation details not part of the namespace std interface. 2736ac495dSmrg */ 2836ac495dSmrg /** @namespace std::tr1 2936ac495dSmrg * @brief ISO C++ TR1 entities toplevel namespace is std::tr1. 3036ac495dSmrg */ 3136ac495dSmrg /** @namespace std::tr1::__detail 3236ac495dSmrg * @brief Implementation details not part of the namespace std::tr1 interface. 3336ac495dSmrg */ 3436ac495dSmrg /** @namespace std::tr2 35*8feb0f0bSmrg * @brief Namespace for non-standard "TR2" extensions. 36*8feb0f0bSmrg * @ingroup extensions 3736ac495dSmrg */ 3836ac495dSmrg /** @namespace std::tr2::__detail 3936ac495dSmrg * @brief Implementation details not part of the namespace std::tr2 interface. 4036ac495dSmrg */ 4136ac495dSmrg /** @namespace __gnu_cxx 4236ac495dSmrg * @brief GNU extensions for public use. 43*8feb0f0bSmrg * @ingroup extensions 4436ac495dSmrg */ 4536ac495dSmrg /** @namespace __gnu_cxx::__detail 4636ac495dSmrg * @brief Implementation details not part of the namespace __gnu_cxx 4736ac495dSmrg * interface. 4836ac495dSmrg */ 4936ac495dSmrg /** @namespace __gnu_internal 5036ac495dSmrg * @brief GNU implemenation details, not for public use or 5136ac495dSmrg * export. Used only when anonymous namespaces cannot be substituted. 5236ac495dSmrg */ 53*8feb0f0bSmrg /** @namespace std::experimental 54*8feb0f0bSmrg * @brief Namespace for features defined in ISO Technical Specifications. 55*8feb0f0bSmrg */ 5636ac495dSmrg // // // // // // // // // // // // // // // // // // // // // // // // 5736ac495dSmrg 5836ac495dSmrg /** 5936ac495dSmrg * @defgroup extensions Extensions 6036ac495dSmrg * 6136ac495dSmrg * Components generally useful that are not part of any standard. 6236ac495dSmrg */ 6336ac495dSmrg 6436ac495dSmrg /** @defgroup SGIextensions SGI 6536ac495dSmrg * @ingroup extensions 6636ac495dSmrg Because libstdc++ based its implementation of the STL subsections of 6736ac495dSmrg the library on the SGI 3.3 implementation, we inherited their extensions 6836ac495dSmrg as well. 6936ac495dSmrg 7036ac495dSmrg They are additionally documented in the 7136ac495dSmrg <a href="http://gcc.gnu.org/onlinedocs/libstdc++/documentation.html"> 7236ac495dSmrg online documentation</a>, a copy of which is also shipped with the 7336ac495dSmrg library source code (in .../docs/html/documentation.html). You can also 7436ac495dSmrg read the documentation <a href="http://www.sgi.com/tech/stl/">on SGI's 7536ac495dSmrg site</a>, which is still running even though the code is not maintained. 7636ac495dSmrg 7736ac495dSmrg <strong>NB</strong> that the following notes are pulled from various 7836ac495dSmrg comments all over the place, so they may seem stilted. 7936ac495dSmrg <hr> 8036ac495dSmrg */ 8136ac495dSmrg 8236ac495dSmrg /** @defgroup containers Containers 8336ac495dSmrg Containers are collections of objects. 8436ac495dSmrg 8536ac495dSmrg A container may hold any type which meets certain requirements, but the type 8636ac495dSmrg of contained object is chosen at compile time, and all objects in a given 8736ac495dSmrg container must be of the same type. (Polymorphism is possible by declaring a 8836ac495dSmrg container of pointers to a base class and then populating it with pointers to 8936ac495dSmrg instances of derived classes. Variant value types such as the @c any class 9036ac495dSmrg from <a href="http://www.boost.org/">Boost</a> can also be used. 9136ac495dSmrg 9236ac495dSmrg All contained types must be @c Assignable and @c CopyConstructible. 9336ac495dSmrg Specific containers may place additional requirements on the types of 9436ac495dSmrg their contained objects. 9536ac495dSmrg 9636ac495dSmrg Containers manage memory allocation and deallocation themselves when 9736ac495dSmrg storing your objects. The objects are destroyed when the container is 9836ac495dSmrg itself destroyed. Note that if you are storing pointers in a container, 9936ac495dSmrg @c delete is @e not automatically called on the pointers before destroying them. 10036ac495dSmrg 10136ac495dSmrg All containers must meet certain requirements, summarized in 10236ac495dSmrg <a href="tables.html">tables</a>. 10336ac495dSmrg 10436ac495dSmrg The standard containers are further refined into 10536ac495dSmrg @link sequences Sequences@endlink and 10636ac495dSmrg @link associative_containers Associative Containers@endlink. 10736ac495dSmrg @link unordered_associative_containers Unordered Associative Containers@endlink. 10836ac495dSmrg */ 10936ac495dSmrg 11036ac495dSmrg /** @defgroup sequences Sequences 11136ac495dSmrg * @ingroup containers 11236ac495dSmrg Sequences arrange a collection of objects into a strictly linear order. 11336ac495dSmrg 11436ac495dSmrg The differences between sequences are usually due to one or both of the 11536ac495dSmrg following: 11636ac495dSmrg - memory management 11736ac495dSmrg - algorithmic complexity 11836ac495dSmrg 11936ac495dSmrg As an example of the first case, @c vector is required to use a contiguous 12036ac495dSmrg memory layout, while other sequences such as @c deque are not. 12136ac495dSmrg 12236ac495dSmrg The prime reason for choosing one sequence over another should be based on 12336ac495dSmrg the second category of differences, algorithmic complexity. For example, if 12436ac495dSmrg you need to perform many inserts and removals from the middle of a sequence, 12536ac495dSmrg @c list would be ideal. But if you need to perform constant-time access to 12636ac495dSmrg random elements of the sequence, then @c list should not be used. 12736ac495dSmrg 12836ac495dSmrg All sequences must meet certain requirements, summarized in 12936ac495dSmrg <a href="tables.html">tables</a>. 13036ac495dSmrg */ 13136ac495dSmrg 13236ac495dSmrg /** @defgroup associative_containers Associative 13336ac495dSmrg * @ingroup containers 13436ac495dSmrg Associative containers allow fast retrieval of data based on keys. 13536ac495dSmrg 13636ac495dSmrg Each container type is parameterized on a @c Key type, and an ordering 13736ac495dSmrg relation used to sort the elements of the container. 13836ac495dSmrg 13936ac495dSmrg All associative containers must meet certain requirements, summarized in 14036ac495dSmrg <a href="tables.html">tables</a>. 14136ac495dSmrg */ 14236ac495dSmrg 14336ac495dSmrg /** @defgroup unordered_associative_containers Unordered Associative 14436ac495dSmrg * @ingroup containers 14536ac495dSmrg Unordered associative containers allow fast retrieval of data based on keys. 14636ac495dSmrg 14736ac495dSmrg Each container type is parameterized on a @c Key type, a @c Hash type 14836ac495dSmrg providing a hashing functor, and an ordering relation used to sort the 14936ac495dSmrg elements of the container. 15036ac495dSmrg 15136ac495dSmrg All unordered associative containers must meet certain requirements, 15236ac495dSmrg summarized in <a href="tables.html">tables</a>. */ 15336ac495dSmrg 15436ac495dSmrg /** 15536ac495dSmrg * @defgroup diagnostics Diagnostics 15636ac495dSmrg * 15736ac495dSmrg * Components for error handling, reporting, and diagnostic operations. 15836ac495dSmrg */ 15936ac495dSmrg 16036ac495dSmrg /** 16136ac495dSmrg * @defgroup concurrency Concurrency 16236ac495dSmrg * 16336ac495dSmrg * Components for concurrent operations, including threads, mutexes, 16436ac495dSmrg * and condition variables. 16536ac495dSmrg */ 166*8feb0f0bSmrg 167*8feb0f0bSmrg /** 168*8feb0f0bSmrg * @defgroup experimental Technical Specifications 169*8feb0f0bSmrg * 170*8feb0f0bSmrg * Components specified by various Technical Specifications. 171*8feb0f0bSmrg * 172*8feb0f0bSmrg * As indicated by the std::experimental namespace and the header paths, 173*8feb0f0bSmrg * the contents of these Technical Specifications are experimental and not 174*8feb0f0bSmrg * part of the C++ standard. As such the interfaces and implementations may 175*8feb0f0bSmrg * change in the future, and there is <STRONG> no guarantee of compatibility 176*8feb0f0bSmrg * between different GCC releases </STRONG> for these features. 177*8feb0f0bSmrg */ 178