From 9cce6e80526d55acdac8a60b88db7e893ad6aaae Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 18 Jan 2004 21:04:11 +0000 Subject: [PATCH] Finished 9.46 and fixed the ReST. [SVN r21822] --- doc/iter-issue-list.rst | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/doc/iter-issue-list.rst b/doc/iter-issue-list.rst index 1162920..d93911f 100644 --- a/doc/iter-issue-list.rst +++ b/doc/iter-issue-list.rst @@ -1036,17 +1036,15 @@ provide rather than how they're implemented. typedef Difference difference_type; if (CategoryOrTraversal is use_default) - typedef |iterator-category|_\ ( + typedef |iterator-category|\ ( iterator_traversal::type,``reference``,``value_type`` ) iterator_category; else - typedef |iterator-category|_\ ( + typedef |iterator-category|\ ( CategoryOrTraversal,``reference``,``value_type`` ) iterator_category; - - Change:: class transform_iterator @@ -1195,6 +1193,7 @@ provide rather than how they're implemented. :Returns: ``*this`` +.. |iterator-category| replace:: *iterator-category* @@ -1447,6 +1446,22 @@ specification :Proposed resolution: add "from" before "making" -9.46y N1530: ``base()`` -===================================================== +9.46y N1530: ``base()`` return-by-value is costly +================================================= + +:Submitter: Dave Abrahams + +We've had some real-life reports that iterators that use +``iterator_adaptor``\ 's ``base()`` function can be inefficient +when the ``Base`` iterator is expensive to copy. Iterators, of +all things, should be efficient. + +:Proposed resolution: + Change:: + + Base base() const; + + to:: + + Base const const& base() const;