WritableIterator.rst 1.1 KB

123456789101112131415161718192021
  1. .. Copyright David Abrahams 2006. Distributed under the Boost
  2. .. Software License, Version 1.0. (See accompanying
  3. .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. Writable Iterator Concept
  5. .........................
  6. A class or built-in type ``X`` models the *Writable Iterator* concept
  7. if, in addition to ``X`` being Copy Constructible, the following
  8. expressions are valid and respect the stated semantics. Writable
  9. Iterators have an associated *set of value types*.
  10. +---------------------------------------------------------------------+
  11. |Writable Iterator Requirements (in addition to Copy Constructible) |
  12. +-------------------------+--------------+----------------------------+
  13. |Expression |Return Type |Precondition |
  14. +=========================+==============+============================+
  15. |``*a = o`` | | pre: The type of ``o`` |
  16. | | | is in the set of |
  17. | | | value types of ``X`` |
  18. +-------------------------+--------------+----------------------------+