Category: adaptors |
Component type: type |
The range_view
template represents objects that
reference a range [first,last), and that have methods for accessing
its elements. The properties of any range_view
instance
depend on the properties of the iterator
template
parameter. The interface of range_view
adapts itself to
the referenced range, as this is given by forward, bidirectional or
random access iterators.
The range_view
presents a range of values. The
range's elements themselves are not altered.
The properties of the order of elements are the same as those provided by the underlying range, as is the validity of more than one active iterators at any one time.
Parameter |
Description |
Default |
iterator |
The view's iterator type |
|
const_iterator |
The view's const_iterator type. |
iterator |
Defined in the header range_view.hpp.
Member |
Where defined |
Description |
|
The type |
|
|
|
|
|
|
|
|
|
|
|
An unsigned integral type. |
|
|
A signed integral type. |
|
|
Iterator used to iterate through the view. |
|
|
Const iterator used to iterate through the view. |
|
|
Iterator used to iterate backwards through a range. |
|
|
Const iterator used to iterate backwards through a range. |
|
|
Returns an iterator pointing to the begin of the view. |
|
|
Returns an iterator pointing to the end of the view. |
|
|
Returns a const_iterator pointing to the begin of the view. |
|
|
Returns a const_iterator pointing to the end of the view. |
|
|
Valid for bidirectional iterator's only. Returns a
|
|
|
Valid for bidirectional iterator's only. Returns a reverse_iterator pointing to the end of the reversed range. |
|
|
Valid for bidirectional iterator's only. Returns a
|
|
|
Valid for bidirectional iterator's only. Returns a
|
|
|
Returns a |
|
|
Returns a |
|
|
Returns a |
|
|
Returns a |
|
|
Increment the beginning iterator. Does not modify the underlying range. |
|
|
Decrement the ending iterator. Does not modify the underlying range. |
|
|
Returns a |
|
|
Returns a |
|
|
Returns a |
|
|
Returns a |
|
|
Returns the size of the view. |
|
|
Returns the largest possible size of the view. |
|
|
true if the view's size is 0. |
|
|
Creates an empty view. |
|
|
Creates a view of given range. |
|
|
Creates a view of given range. |
|
|
Swaps the two views. Iterators are invalidated by this operation. |
|
|
Tests two views for equality. This is a global function, not a member function. |
|
|
Lexicographical comparison. This is a global function, not a member function. |
VTL Home
Copyright
© 1999, 2000 Konrad-Zuse-Zentrum für Informationstechnik Berlin & Gary Powell All Rights Reserved.