mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 16:23:56 +08:00
allocator_traits.h: Fix doxygen markup.
2003-07-06 Phil Edwards <pme@gcc.gnu.org> * include/bits/allocator_traits.h: Fix doxygen markup. * include/ext/mt_allocator.h: Likewise. From-SVN: r68994
This commit is contained in:
parent
aaa4a229ec
commit
481668695a
@ -1,3 +1,8 @@
|
|||||||
|
2003-07-06 Phil Edwards <pme@gcc.gnu.org>
|
||||||
|
|
||||||
|
* include/bits/allocator_traits.h: Fix doxygen markup.
|
||||||
|
* include/ext/mt_allocator.h: Likewise.
|
||||||
|
|
||||||
2003-07-06 Phil Edwards <pme@gcc.gnu.org>
|
2003-07-06 Phil Edwards <pme@gcc.gnu.org>
|
||||||
|
|
||||||
* testsuite/testsuite_hooks.h: Guard against a missing unlink().
|
* testsuite/testsuite_hooks.h: Guard against a missing unlink().
|
||||||
|
@ -220,7 +220,6 @@ namespace std
|
|||||||
* @endif
|
* @endif
|
||||||
* (See @link Allocators allocators info @endlink for more.)
|
* (See @link Allocators allocators info @endlink for more.)
|
||||||
*/
|
*/
|
||||||
//@{
|
|
||||||
// The fully general version.
|
// The fully general version.
|
||||||
template<typename _Tp, typename _Allocator>
|
template<typename _Tp, typename _Allocator>
|
||||||
struct _Alloc_traits
|
struct _Alloc_traits
|
||||||
|
@ -41,6 +41,9 @@
|
|||||||
#include <bits/atomicity.h>
|
#include <bits/atomicity.h>
|
||||||
#include <bits/allocator_traits.h>
|
#include <bits/allocator_traits.h>
|
||||||
|
|
||||||
|
namespace __gnu_cxx
|
||||||
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a fixed size (power of 2) allocator which - when compiled
|
* This is a fixed size (power of 2) allocator which - when compiled
|
||||||
* with thread support - will maintain one freelist per size per thread
|
* with thread support - will maintain one freelist per size per thread
|
||||||
@ -48,14 +51,13 @@
|
|||||||
* sizes (by returning excess back to "global").
|
* sizes (by returning excess back to "global").
|
||||||
*
|
*
|
||||||
* Usage examples:
|
* Usage examples:
|
||||||
|
* @code
|
||||||
* vector<int, __gnu_cxx::__mt_alloc<0> > v1;
|
* vector<int, __gnu_cxx::__mt_alloc<0> > v1;
|
||||||
*
|
*
|
||||||
* typedef std::__allocator<char, __gnu_cxx::__mt_alloc<0> > string_alloc;
|
* typedef std::__allocator<char, __gnu_cxx::__mt_alloc<0> > string_alloc;
|
||||||
* std::basic_string<char, std::char_traits<char>, string_alloc> s1;
|
* std::basic_string<char, std::char_traits<char>, string_alloc> s1;
|
||||||
|
* @endcode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace __gnu_cxx
|
|
||||||
{
|
|
||||||
template<int __inst>
|
template<int __inst>
|
||||||
class __mt_alloc
|
class __mt_alloc
|
||||||
{
|
{
|
||||||
@ -860,4 +862,3 @@ namespace std
|
|||||||
} // namespace std
|
} // namespace std
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user