Relax ForwardIterator requirements in FieldSequence

This commit is contained in:
Vinnie Falco
2016-10-14 15:03:58 -04:00
parent 14d7f8d362
commit 4224a3a2db
5 changed files with 27 additions and 17 deletions
+13 -5
View File
@@ -15,7 +15,7 @@ In this table:
* `X` denotes a type that meets the requirements of [*FieldSequence].
* `a` is a value of type `X`.
* `c` is a value of type `X const`.
[table FieldSequence requirements
[[operation][type][semantics, pre/post-conditions]]
@@ -23,25 +23,33 @@ In this table:
[`X::value_type`]
[]
[
A type that meets the requirements of @b Field.
A type that meets the requirements of [link beast.ref.Field [*Field]].
]
]
[
[`X::const_iterator`]
[]
[
A type that meets the requirements of @b ForwardIterator.
An iterator type whose `reference` type meets the
requirements of [link beast.ref.Field [*Field]], and which
satisfies all the requirements of [*ForwardIterator],
except that:
[ordered_list
[there is no requirement that `operator->` is provided, and]
[there is no requirement that `reference` be a reference type.]
]
]
]
[
[`a.begin()`]
[`c.begin()`]
[`X::const_iterator`]
[
Returns an iterator to the beginning of the field sequence.
]
]
[
[`a.end()`]
[`c.end()`]
[`X::const_iterator`]
[
Returns an iterator to the end of the field sequence.