From: Jonathan Wakely Date: Sat, 12 Oct 2002 06:14:31 +0000 (+0000) Subject: howto.html: Correct nasting of XHTML elements. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b06a1ea51f22f7200b36f8bf9beda210e0a5370f;p=gcc.git howto.html: Correct nasting of XHTML elements. 2002-10-12 Jonathan Wakely Gabriel Dos Reis * docs/html/21_strings/howto.html#5: Correct nasting of XHTML elements. Correct allocator-related text. Co-Authored-By: Gabriel Dos Reis From-SVN: r58080 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e04ee846ee5..e6b8cf3c5dd 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2002-10-12 Jonathan Wakely + Gabriel Dos Reis + + * docs/html/21_strings/howto.html#5: Correct nasting of XHTML + elements. Correct allocator-related text. + 2002-10-11 Benjamin Kosnik * testsuite/22_locale/static_members.cc (test02): Fix. diff --git a/libstdc++-v3/docs/html/21_strings/howto.html b/libstdc++-v3/docs/html/21_strings/howto.html index 4a8006d38e1..cba9c3f21d4 100644 --- a/libstdc++-v3/docs/html/21_strings/howto.html +++ b/libstdc++-v3/docs/html/21_strings/howto.html @@ -350,26 +350,28 @@

That's the theory. Remember however that basic_string has additional type parameters, which take default arguments based on the character type (called CharT here): -

+   

+
       template <typename CharT,
                 typename Traits = char_traits<CharT>,
                 typename Alloc = allocator<CharT> >
       class basic_string { .... };
- Now, allocator<CharT> will probably Do The Right - Thing by default, unless you need to do something very strange with - memory allocation in your characters. +

Now, allocator<CharT> will probably Do The Right + Thing by default, unless you need to implement your own allocator + for your characters.

But char_traits takes more work. The char_traits template is declared but not defined. That means there is only -

+   

+
       template <typename CharT>
         struct char_traits
         {
             static void foo (type1 x, type2 y);
             ...
         };
- and functions such as char_traits<CharT>::foo() are not +

and functions such as char_traits<CharT>::foo() are not actually defined anywhere for the general case. The C++ standard permits this, because writing such a definition to fit all possible CharT's cannot be done. (For a time, in earlier versions of GCC,