summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-06 04:37:22 +0000
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-06 04:37:22 +0000
commitb944ea74582a3520691dc4c1ecf8130c8a6491d3 (patch)
tree9d73a5b6e6e2cdbe7afd8c6b0cdb3d4e926b43a5
parentcac50ebb1efb2a0e333f71a6d162bfd52e8807d8 (diff)
downloadgcc-b944ea74582a3520691dc4c1ecf8130c8a6491d3.tar.gz
2003-07-06 Phil Edwards <pme@gcc.gnu.org>
* include/bits/allocator_traits.h: Fix doxygen markup. * include/ext/mt_allocator.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68994 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/bits/allocator_traits.h1
-rw-r--r--libstdc++-v3/include/ext/mt_allocator.h9
3 files changed, 10 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 3ccffeef2b8..d0a0a7470d7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,10 @@
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>
+
* testsuite/testsuite_hooks.h: Guard against a missing unlink().
2003-07-05 Phil Edwards <pme@gcc.gnu.org>
diff --git a/libstdc++-v3/include/bits/allocator_traits.h b/libstdc++-v3/include/bits/allocator_traits.h
index be9a352fdd9..35ef1d4ebb9 100644
--- a/libstdc++-v3/include/bits/allocator_traits.h
+++ b/libstdc++-v3/include/bits/allocator_traits.h
@@ -220,7 +220,6 @@ namespace std
* @endif
* (See @link Allocators allocators info @endlink for more.)
*/
- //@{
// The fully general version.
template<typename _Tp, typename _Allocator>
struct _Alloc_traits
diff --git a/libstdc++-v3/include/ext/mt_allocator.h b/libstdc++-v3/include/ext/mt_allocator.h
index cd3b273ad91..4c1d21fa92a 100644
--- a/libstdc++-v3/include/ext/mt_allocator.h
+++ b/libstdc++-v3/include/ext/mt_allocator.h
@@ -41,6 +41,9 @@
#include <bits/atomicity.h>
#include <bits/allocator_traits.h>
+namespace __gnu_cxx
+{
+
/**
* This is a fixed size (power of 2) allocator which - when compiled
* with thread support - will maintain one freelist per size per thread
@@ -48,14 +51,13 @@
* sizes (by returning excess back to "global").
*
* Usage examples:
+ * @code
* vector<int, __gnu_cxx::__mt_alloc<0> > v1;
*
* typedef std::__allocator<char, __gnu_cxx::__mt_alloc<0> > string_alloc;
* std::basic_string<char, std::char_traits<char>, string_alloc> s1;
+ * @endcode
*/
-
-namespace __gnu_cxx
-{
template<int __inst>
class __mt_alloc
{
@@ -860,4 +862,3 @@ namespace std
} // namespace std
#endif
-