aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2003-07-06 04:37:22 +0000
committerPhil Edwards <pme@gcc.gnu.org>2003-07-06 04:37:22 +0000
commit481668695af894b6738d2d64f3e005b2709399c5 (patch)
tree9d73a5b6e6e2cdbe7afd8c6b0cdb3d4e926b43a5
parentaaa4a229eccb9d92ab36ce7174a5df7587b31173 (diff)
downloadgcc-481668695af894b6738d2d64f3e005b2709399c5.zip
gcc-481668695af894b6738d2d64f3e005b2709399c5.tar.gz
gcc-481668695af894b6738d2d64f3e005b2709399c5.tar.bz2
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
-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 3ccffee..d0a0a74 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 be9a352..35ef1d4 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 cd3b273..4c1d21f 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
-