From: François Dumont Date: Tue, 26 Jan 2010 19:05:43 +0000 (+0000) Subject: allocator.xml: Minor updates and fixes. X-Git-Tag: releases/gcc-4.5.0~1043 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d3f5a93c3b37ed56d86208c365f2d95b8181255;p=thirdparty%2Fgcc.git allocator.xml: Minor updates and fixes. 2010-01-26 François Dumont * doc/xml/manual/allocator.xml: Minor updates and fixes. * doc/xml/manual/containers.xml: Likewise. * doc/xml/manual/using.xml: Likewise. * doc/xml/manual/locale.xml: Likewise. * doc/xml/manual/appendix_contributing.xml: Likewise. From-SVN: r156258 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a0d319720f82..4263844279f4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2010-01-26 François Dumont + + * doc/xml/manual/allocator.xml: Minor updates and fixes. + * doc/xml/manual/containers.xml: Likewise. + * doc/xml/manual/using.xml: Likewise. + * doc/xml/manual/locale.xml: Likewise. + * doc/xml/manual/appendix_contributing.xml: Likewise. + 2010-01-26 Daniel Frey * include/std/functional: Use enable_if instead of __enable_if @@ -35,7 +43,7 @@ 2010-01-21 Jonathan Wakely - PR libstdc++/42201 + PR libstdc++/42201 * include/std/future: Update to latest WP. * src/functexcept.cc (__throw_future_error): Use make_error_code. * testsuite/30_threads/async/any.cc: New. @@ -70,7 +78,7 @@ * testsuite/30_threads/unique_future/cons/copy_neg.cc: Adjust. * testsuite/30_threads/unique_future/cons/move.cc: Adjust. * testsuite/30_threads/unique_future/requirements/ - explicit_instantiation.cc: Adjust. + explicit_instantiation.cc: Adjust. * testsuite/30_threads/unique_future/members/is_ready.cc: Remove. * testsuite/30_threads/unique_future/members/has_value.cc: Remove. * testsuite/30_threads/unique_future/members/has_exception.cc: Remove. diff --git a/libstdc++-v3/doc/xml/manual/allocator.xml b/libstdc++-v3/doc/xml/manual/allocator.xml index 6c8c2913a3fe..2f2b03849aa8 100644 --- a/libstdc++-v3/doc/xml/manual/allocator.xml +++ b/libstdc++-v3/doc/xml/manual/allocator.xml @@ -81,7 +81,7 @@ - Complete details cam be found in the C++ standard, look in + Complete details can be found in the C++ standard, look in [20.4 Memory]. @@ -146,7 +146,7 @@ The only allocator interface that - is support is the standard C++ interface. As such, all STL + is supported is the standard C++ interface. As such, all STL containers have been adjusted, and all external allocators have been modified to support this change. @@ -202,7 +202,7 @@ This test shows the ability of the allocator to reclaim memory - on a pre-thread basis, as well as measuring thread contention + on a per-thread basis, as well as measuring thread contention for memory resources. Test source here. @@ -447,8 +447,8 @@ The thr boolean determines whether the pool should be manipulated atomically or not. When thr = true, the allocator - is is thread-safe, while thr = - false, and is slightly faster but unsafe for + is thread-safe, while thr = + false, is slightly faster but unsafe for multiple threads. diff --git a/libstdc++-v3/doc/xml/manual/appendix_contributing.xml b/libstdc++-v3/doc/xml/manual/appendix_contributing.xml index e37d3a3def83..d77f2a045705 100644 --- a/libstdc++-v3/doc/xml/manual/appendix_contributing.xml +++ b/libstdc++-v3/doc/xml/manual/appendix_contributing.xml @@ -172,7 +172,7 @@ A ChangeLog entry as plain text; see the various - ChangeLog files for format and content. If using you are + ChangeLog files for format and content. If you are using emacs as your editor, simply position the insertion point at the beginning of your change and hit CX-4a to bring up the appropriate ChangeLog entry. See--magic! Similar diff --git a/libstdc++-v3/doc/xml/manual/containers.xml b/libstdc++-v3/doc/xml/manual/containers.xml index 17cf5a1b82de..909d52008bd6 100644 --- a/libstdc++-v3/doc/xml/manual/containers.xml +++ b/libstdc++-v3/doc/xml/manual/containers.xml @@ -170,7 +170,7 @@ end(), then the item being inserted should have a key greater than all the other keys in the container. The item will be inserted at the end of the container, becoming - the new entry at end(). + the new entry before end(). @@ -286,7 +286,7 @@ The problem is that vector<bool> doesn't - behave like a normal vector anymore. There have been recent + behave like a normal vector anymore. There have been journal articles which discuss the problems (the ones by Herb Sutter in the May and July/August 1999 issues of C++ Report cover it well). Future revisions of the ISO C++ Standard will change diff --git a/libstdc++-v3/doc/xml/manual/locale.xml b/libstdc++-v3/doc/xml/manual/locale.xml index faf5e9385600..cfb074d51956 100644 --- a/libstdc++-v3/doc/xml/manual/locale.xml +++ b/libstdc++-v3/doc/xml/manual/locale.xml @@ -38,8 +38,8 @@ class facet Facets actually implement locale functionality. For instance, a facet -called numpunct is the data objects that can be used to query for the -thousands separator is in the German locale. +called numpunct is the data object that can be used to query for the +thousands separator in the locale. diff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml index b6af5e157c49..7db334facb2b 100644 --- a/libstdc++-v3/doc/xml/manual/using.xml +++ b/libstdc++-v3/doc/xml/manual/using.xml @@ -655,7 +655,7 @@ same translation unit: (<math.h> in this case), the symbols will be available in the global namespace and perhaps in namespace std:: (but this is no longer a firm - requirement.) One the other hand, including the C++-style + requirement.) On the other hand, including the C++-style header (<cmath>) guarantees that the entities will be found in namespace std and perhaps in the global namespace. @@ -808,7 +808,7 @@ and __gnu_pbds. std::string;) This approach works well for individual source files, but should not be used in a global context, like header files. use a fully -qualified namefor each library symbol +qualified name for each library symbol (i.e. std::string, std::cout) Always can be used, and usually enhanced, by strategic use of typedefs. (In the cases where the qualified verbiage becomes unwieldy.)