Commit cad3fc8c by Jonathan Wakely Committed by Jonathan Wakely

Update libstdc++ API Evolution documentation

	* doc/xml/manual/allocator.xml: Link to table documenting evolution
	of extension allocators.
	* doc/xml/manual/evolution.xml: Use angle brackets for header names.
	Document new headers in 7.2, 8.1 and 9.1 releases.
	* doc/xml/manual/using.xml: Adjust link target for new_allocator.
	* doc/html/*: Regenerate.

From-SVN: r269794
parent edff2a05
2019-03-19 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/allocator.xml: Link to table documenting evolution
of extension allocators.
* doc/xml/manual/evolution.xml: Use angle brackets for header names.
Document new headers in 7.2, 8.1 and 9.1 releases.
* doc/xml/manual/using.xml: Adjust link target for new_allocator.
* doc/html/*: Regenerate.
2019-03-12 John David Anglin <dave.anglin@bell.net> 2019-03-12 John David Anglin <dave.anglin@bell.net>
PR libstdc++/89461 PR libstdc++/89461
......
...@@ -204,8 +204,8 @@ ...@@ -204,8 +204,8 @@
names have changed, but in all cases, functionality is names have changed, but in all cases, functionality is
equivalent. Starting with gcc-3.4, all extension allocators are equivalent. Starting with gcc-3.4, all extension allocators are
standard style. Before this point, SGI style was the norm. Because of standard style. Before this point, SGI style was the norm. Because of
this, the number of template arguments also changed. Here's a simple this, the number of template arguments also changed.
chart to track the changes. <a class="xref" href="api.html#table.extension_allocators" title="Table B.6. Extension Allocators">Table B.6, “Extension Allocators”</a> tracks the changes.
</p><p> </p><p>
More details on each of these extension allocators follows. More details on each of these extension allocators follows.
</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p> </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
enabled for enabled for
<code class="classname">std::vector&lt;T, std::allocator&lt;T&gt;&gt;</code> <code class="classname">std::vector&lt;T, std::allocator&lt;T&gt;&gt;</code>
and only when <code class="classname">std::allocator</code> is derived from and only when <code class="classname">std::allocator</code> is derived from
<a class="link" href="memory.html#allocator.impl" title="Implementation"><code class="classname">new_allocator</code> <a class="link" href="memory.html#allocator.ext" title="Extension Allocators"><code class="classname">new_allocator</code>
or <code class="classname">malloc_allocator</code></a>. The annotations or <code class="classname">malloc_allocator</code></a>. The annotations
must be present on all vector operations or none, so this macro must must be present on all vector operations or none, so this macro must
be defined to the same value for all translation units that create, be defined to the same value for all translation units that create,
......
...@@ -139,7 +139,6 @@ ...@@ -139,7 +139,6 @@
<section xml:id="allocator.interface"><info><title>Interface Design</title></info> <section xml:id="allocator.interface"><info><title>Interface Design</title></info>
<para> <para>
The only allocator interface that The only allocator interface that
is supported is the standard C++ interface. As such, all STL is supported is the standard C++ interface. As such, all STL
...@@ -163,7 +162,6 @@ ...@@ -163,7 +162,6 @@
<section xml:id="allocator.default"><info><title>Selecting Default Allocation Policy</title></info> <section xml:id="allocator.default"><info><title>Selecting Default Allocation Policy</title></info>
<para> <para>
It's difficult to pick an allocation strategy that will provide It's difficult to pick an allocation strategy that will provide
maximum utility, without excessively penalizing some behavior. In maximum utility, without excessively penalizing some behavior. In
...@@ -229,7 +227,6 @@ ...@@ -229,7 +227,6 @@
<section xml:id="allocator.caching"><info><title>Disabling Memory Caching</title></info> <section xml:id="allocator.caching"><info><title>Disabling Memory Caching</title></info>
<para> <para>
In use, <classname>allocator</classname> may allocate and In use, <classname>allocator</classname> may allocate and
deallocate using implementation-specific strategies and deallocate using implementation-specific strategies and
...@@ -328,8 +325,8 @@ ...@@ -328,8 +325,8 @@
names have changed, but in all cases, functionality is names have changed, but in all cases, functionality is
equivalent. Starting with gcc-3.4, all extension allocators are equivalent. Starting with gcc-3.4, all extension allocators are
standard style. Before this point, SGI style was the norm. Because of standard style. Before this point, SGI style was the norm. Because of
this, the number of template arguments also changed. Here's a simple this, the number of template arguments also changed.
chart to track the changes. <xref linkend="table.extension_allocators"/> tracks the changes.
</para> </para>
<para> <para>
......
...@@ -1192,7 +1192,7 @@ g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe ...@@ -1192,7 +1192,7 @@ g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe
enabled for enabled for
<classname>std::vector&lt;T, std::allocator&lt;T&gt;&gt;</classname> <classname>std::vector&lt;T, std::allocator&lt;T&gt;&gt;</classname>
and only when <classname>std::allocator</classname> is derived from and only when <classname>std::allocator</classname> is derived from
<link linkend="allocator.impl"><classname>new_allocator</classname> <link linkend="allocator.ext"><classname>new_allocator</classname>
or <classname>malloc_allocator</classname></link>. The annotations or <classname>malloc_allocator</classname></link>. The annotations
must be present on all vector operations or none, so this macro must must be present on all vector operations or none, so this macro must
be defined to the same value for all translation units that create, be defined to the same value for all translation units that create,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment