Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-12-16 05:59:45


Author: danieljames
Date: 2007-12-16 05:59:45 EST (Sun, 16 Dec 2007)
New Revision: 42100
URL: http://svn.boost.org/trac/boost/changeset/42100

Log:
Use Mapped instead of T in the documentation.
Text files modified:
   sandbox/unordered/libs/unordered/doc/intro.qbk | 4 ++--
   sandbox/unordered/libs/unordered/doc/ref.xml | 36 ++++++++++++++++++------------------
   2 files changed, 20 insertions(+), 20 deletions(-)

Modified: sandbox/unordered/libs/unordered/doc/intro.qbk
==============================================================================
--- sandbox/unordered/libs/unordered/doc/intro.qbk (original)
+++ sandbox/unordered/libs/unordered/doc/intro.qbk 2007-12-16 05:59:45 EST (Sun, 16 Dec 2007)
@@ -63,14 +63,14 @@
 
     namespace boost {
         template <
- class Key, class T,
+ class Key, class Mapped,
             class Hash = ``[classref boost::hash]``<Key>,
             class Pred = std::equal_to<Key>,
             class Alloc = std::allocator<Key> >
         class ``[classref boost::unordered_map unordered_map]``;
 
         template<
- class Key, class T,
+ class Key, class Mapped,
             class Hash = ``[classref boost::hash]``<Key>,
             class Pred = std::equal_to<Key>,
             class Alloc = std::allocator<Key> >

Modified: sandbox/unordered/libs/unordered/doc/ref.xml
==============================================================================
--- sandbox/unordered/libs/unordered/doc/ref.xml (original)
+++ sandbox/unordered/libs/unordered/doc/ref.xml 2007-12-16 05:59:45 EST (Sun, 16 Dec 2007)
@@ -1187,7 +1187,7 @@
           <template>
             <template-type-parameter name="Key">
             </template-type-parameter>
- <template-type-parameter name="T">
+ <template-type-parameter name="Mapped">
             </template-type-parameter>
             <template-type-parameter name="Hash">
               <default><type>boost::hash&lt;Value&gt;</type></default>
@@ -1196,7 +1196,7 @@
               <default><type>std::equal_to&lt;Value&gt;</type></default>
             </template-type-parameter>
             <template-type-parameter name="Alloc">
- <default><type>std::allocator&lt;std::pair&lt;const Key, T&gt; &gt;</type></default>
+ <default><type>std::allocator&lt;std::pair&lt;const Key, Mapped&gt; &gt;</type></default>
             </template-type-parameter>
           </template>
           <purpose>An unordered associative container that associates unique keys with another value.
@@ -1212,8 +1212,8 @@
                       <entry><emphasis>Key</emphasis></entry>
                       <entry>Key must be Assignable and CopyConstructible.</entry></row>
                     <row>
- <entry><emphasis>T</emphasis></entry>
- <entry>T must be CopyConstructible</entry></row>
+ <entry><emphasis>Mapped</emphasis></entry>
+ <entry>Mapped must be CopyConstructible</entry></row>
                     <row>
                       <entry><emphasis>Hash</emphasis></entry>
                       <entry>A unary function object type that acts a hash function for a <code>Key</code>. It takes a single argument of type <code>Key</code> and returns a value of type std::size_t.</entry></row>
@@ -1235,7 +1235,7 @@
             <type>std::pair&lt;Key const, Value&gt;</type>
           </typedef>
           <typedef name="mapped_type">
- <type>T</type>
+ <type>Mapped</type>
           </typedef>
           <typedef name="hasher">
             <type>Hash</type>
@@ -1642,9 +1642,9 @@
               </notes>
             </method>
             <overloaded-method name="at">
- <signature><type>T&amp;</type>
+ <signature><type>Mapped&amp;</type>
                 <parameter name="k"><paramtype>key_type const&amp;</paramtype></parameter></signature>
- <signature cv="const"><type>T const&amp;</type>
+ <signature cv="const"><type>Mapped const&amp;</type>
                 <parameter name="k"><paramtype>key_type const&amp;</paramtype></parameter></signature>
               <returns>
                 <para>A reference to <code>x.second</code> where <code>x</code> is the (unique) element whose key is equivalent to <code>k</code>.</para>
@@ -1777,7 +1777,7 @@
               <template>
                 <template-type-parameter name="Key">
                 </template-type-parameter>
- <template-type-parameter name="T">
+ <template-type-parameter name="Mapped">
                 </template-type-parameter>
                 <template-type-parameter name="Hash">
                 </template-type-parameter>
@@ -1787,10 +1787,10 @@
                 </template-type-parameter>
               </template>
               <parameter name="x">
- <paramtype>unordered_map&lt;Key, T, Hash, Pred, Alloc&gt;&amp;</paramtype>
+ <paramtype>unordered_map&lt;Key, Mapped, Hash, Pred, Alloc&gt;&amp;</paramtype>
               </parameter>
               <parameter name="y">
- <paramtype>unordered_map&lt;Key, T, Hash, Pred, Alloc&gt;&amp;</paramtype>
+ <paramtype>unordered_map&lt;Key, Mapped, Hash, Pred, Alloc&gt;&amp;</paramtype>
               </parameter>
               <type>void</type>
               <effects>
@@ -1811,7 +1811,7 @@
           <template>
             <template-type-parameter name="Key">
             </template-type-parameter>
- <template-type-parameter name="T">
+ <template-type-parameter name="Mapped">
             </template-type-parameter>
             <template-type-parameter name="Hash">
               <default><type>boost::hash&lt;Value&gt;</type></default>
@@ -1820,7 +1820,7 @@
               <default><type>std::equal_to&lt;Value&gt;</type></default>
             </template-type-parameter>
             <template-type-parameter name="Alloc">
- <default><type>std::allocator&lt;std::pair&lt;const Key, T&gt; &gt;</type></default>
+ <default><type>std::allocator&lt;std::pair&lt;const Key, Mapped&gt; &gt;</type></default>
             </template-type-parameter>
           </template>
           <purpose>An unordered associative container that associates keys with another value. The same key can be stored multiple times.
@@ -1836,8 +1836,8 @@
                       <entry><emphasis>Key</emphasis></entry>
                       <entry>Key must be Assignable and CopyConstructible.</entry></row>
                     <row>
- <entry><emphasis>T</emphasis></entry>
- <entry>T must be CopyConstructible</entry></row>
+ <entry><emphasis>Mapped</emphasis></entry>
+ <entry>Mapped must be CopyConstructible</entry></row>
                     <row>
                       <entry><emphasis>Hash</emphasis></entry>
                       <entry>A unary function object type that acts a hash function for a <code>Key</code>. It takes a single argument of type <code>Key</code> and returns a value of type std::size_t.</entry></row>
@@ -1859,7 +1859,7 @@
             <type>std::pair&lt;Key const, Value&gt;</type>
           </typedef>
           <typedef name="mapped_type">
- <type>T</type>
+ <type>Mapped</type>
           </typedef>
           <typedef name="hasher">
             <type>Hash</type>
@@ -2366,7 +2366,7 @@
               <template>
                 <template-type-parameter name="Key">
                 </template-type-parameter>
- <template-type-parameter name="T">
+ <template-type-parameter name="Mapped">
                 </template-type-parameter>
                 <template-type-parameter name="Hash">
                 </template-type-parameter>
@@ -2376,10 +2376,10 @@
                 </template-type-parameter>
               </template>
               <parameter name="x">
- <paramtype>unordered_multimap&lt;Key, T, Hash, Pred, Alloc&gt;&amp;</paramtype>
+ <paramtype>unordered_multimap&lt;Key, Mapped, Hash, Pred, Alloc&gt;&amp;</paramtype>
               </parameter>
               <parameter name="y">
- <paramtype>unordered_multimap&lt;Key, T, Hash, Pred, Alloc&gt;&amp;</paramtype>
+ <paramtype>unordered_multimap&lt;Key, Mapped, Hash, Pred, Alloc&gt;&amp;</paramtype>
               </parameter>
               <type>void</type>
               <effects>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk