Boost logo

Boost-Commit :

From: asutton_at_[hidden]
Date: 2007-07-30 20:55:43


Author: asutton
Date: 2007-07-30 20:55:42 EDT (Mon, 30 Jul 2007)
New Revision: 7600
URL: http://svn.boost.org/trac/boost/changeset/7600

Log:
Added a couple more lines of documentation.

Text files modified:
   sandbox/boost_docs/trunk/libs/standard/doc/concepts/containers/container.qbk | 40 ++++++++++++++++++++++++++++++++++++++--
   1 files changed, 38 insertions(+), 2 deletions(-)

Modified: sandbox/boost_docs/trunk/libs/standard/doc/concepts/containers/container.qbk
==============================================================================
--- sandbox/boost_docs/trunk/libs/standard/doc/concepts/containers/container.qbk (original)
+++ sandbox/boost_docs/trunk/libs/standard/doc/concepts/containers/container.qbk 2007-07-30 20:55:42 EDT (Mon, 30 Jul 2007)
@@ -21,7 +21,7 @@
 [table
     [[Expression] [Description]]
     [[`C`] [A type that models the [StdContainer] concept.]]
- [[`c`] [An object of type `C`.]]
+ [[`c`, `d`] [Objects of type `C`.]]
     [[`T`] [An object stored by `C`.]]
 ]
 
@@ -94,6 +94,38 @@
             Construct a new contaiiner of type `C`.
             
             *Postcondition:* The created container has `size() == 0`.
+
+ *Complexity:* Constant.
+ ]
+ ]
+ [
+ [Default Constructor]
+ [
+ C c(d);
+
+ C c = d;
+
+ C(d)
+ ]
+ []
+ [
+ Construct a new container of type `C` with a copy of the contents
+ of container `d`.
+
+ *Postcondition:* The constructed container is equivalent to `d`,
+
+ *Complexity:* Linear in `d.size()`.
+ ]
+ ]
+ [
+ [Destructor]
+ [c.~C();]
+ [`void`]
+ [
+ The destructor of every element in `c` is called and any memory
+ allocated by the container is deallocated.
+
+ *Complexity:* Linear in the c.size()`.
         ]
     ]
     [
@@ -109,10 +141,12 @@
             
             *Postcondition:* If `c` is not empty, `c.begin()` is dereferenceable.
             Otherwise, it is past the end.
+
+ *Complexity:* Constant.
         ]
     ]
     [
- [Beginning of Range]
+ [End of Range]
         [`c.end()`]
         [
             `iterator` if `c` is mutable.
@@ -123,6 +157,8 @@
             Returns an iterator pointing past the end of the container..
             
             *Postcondition:* `c.end()` is past the edn of the array.
+
+ *Complexity:* Constant.
         ]
     ]
 ]


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