WritableIterator.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
  7. <title>Writable Iterator Concept</title>
  8. <link rel="stylesheet" href="../../../rst.css" type="text/css" />
  9. </head>
  10. <body>
  11. <div class="document" id="writable-iterator-concept">
  12. <h1 class="title">Writable Iterator Concept</h1>
  13. <!-- Copyright David Abrahams 2006. Distributed under the Boost -->
  14. <!-- Software License, Version 1.0. (See accompanying -->
  15. <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
  16. <p>A class or built-in type <tt class="docutils literal"><span class="pre">X</span></tt> models the <em>Writable Iterator</em> concept
  17. if, in addition to <tt class="docutils literal"><span class="pre">X</span></tt> being Copy Constructible, the following
  18. expressions are valid and respect the stated semantics. Writable
  19. Iterators have an associated <em>set of value types</em>.</p>
  20. <table border="1" class="docutils">
  21. <colgroup>
  22. <col width="37%" />
  23. <col width="21%" />
  24. <col width="42%" />
  25. </colgroup>
  26. <thead valign="bottom">
  27. <tr><th class="head" colspan="3">Writable Iterator Requirements (in addition to Copy Constructible)</th>
  28. </tr>
  29. <tr><th class="head">Expression</th>
  30. <th class="head">Return Type</th>
  31. <th class="head">Precondition</th>
  32. </tr>
  33. </thead>
  34. <tbody valign="top">
  35. <tr><td><tt class="docutils literal"><span class="pre">*a</span> <span class="pre">=</span> <span class="pre">o</span></tt></td>
  36. <td>&nbsp;</td>
  37. <td>pre: The type of <tt class="docutils literal"><span class="pre">o</span></tt>
  38. is in the set of
  39. value types of <tt class="docutils literal"><span class="pre">X</span></tt></td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </div>
  44. <div class="footer">
  45. <hr class="footer" />
  46. <a class="reference external" href="WritableIterator.rst">View document source</a>.
  47. Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
  48. </div>
  49. </body>
  50. </html>