1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
hi(begin) hi(end) hi(cbegin) hi(cend)
itemization(
it() Header file: tt(<iterator>) (also available when including
tt(<algorithm>))
it() Function prototypes:
itemization(
itt(auto begin([const] &obj);)
itt(auto end([const] &obj);)
itt(Type [cons] *begin(Type [const] (&array)[N]);)
itt(Type [cons] *end(Type [const] (&array)[N]);)
itt(auto cbegin(const &obj);)
itt(auto cend(const &obj);)
)
it() Description:
The tt(begin) and tt(end) functions return, respectively, the begin-
and end-iterators or pointers of objects offering tt(begin()) and tt(end())
members or of arrays of (compile-time) available sizes.
itemization(
it() The first two prototypes return, respectively,
tt(obj.begin()) and tt(obj.end()) of (possibly tt(const))
references to tt(obj)
it() Prototypes three and four return (possibly tt(const))
pointers to, respectively, the first and beyond the last
element of the tt(array) argument, which must be an array of
(compile-time) known size.
it() The lastt two prototypes return, respectively,
tt(obj.begin()) and tt(obj.end()) of tt(const)
references to tt(obj)
)
it() Example:
verbinclude(-a examples/beginend.cc)
)
|