|
|
Category: adaptors |
Component type: type |
The rotate_view
template represents a union_view
of two range_views. The properties of
any rotate_view
instance depend on the properties of the
container template parameters. [1].
The guarantees of the order of elements are the same as those provided by both underlying container, as is the validity of more than one active iterators at any one time.
rotate_views
are mutable if and only if the const_tag
template parameter is mutable_view_tag
.
A rotate_view
owns its referenced containers, if its
corresponding base template parameter is aggregated_ownership
,
it merely references its containers, if the base template
parameter is referenced_ownership.
Parameter |
Description |
Default |
iterator |
The view's iterator type |
|
const_iterator |
The view's const_iterator type. |
iterator |
|
The view's const tag: either |
|
|
The view's directional iterator category |
|
Defined in the header rotate_view.h
.
The iterators must all be from the same
container and in the following order, first, last and middle. The
requirements the rotate_view
satisfies depend on the
requirements its template parameters satisfy:
Member |
Where defined |
Description |
|
The type T of the elements accessed through the container. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Iterator used to iterate through the view. |
|
|
Const iterator used to iterate through the view. |
|
|
Iterator used to iterate backwards through a container. |
|
|
Const iterator used to iterate backwards through a container. |
|
|
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 container's only. Returns a reverse_iterator pointing to the beginning of the reversed container. |
|
|
Valid for bidirectional container's only. Returns a reverse_iterator pointing to the end of the reversed container. |
|
|
Valid for
bidirectional container's only. Returns a |
|
|
Valid for bidirectional container's only. Returns a
|
|
|
Returns a |
|
|
Returns a |
|
|
Returns a |
|
|
Returns a |
|
|
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 container. |
|
|
Swaps the two views. Iterators are invalidated by this operation. For referencing views, the containers themselves are not swapped. |
|
|
Tests two views for equality. This is a global function, not a member function. Views may be equal even if their referenced containers are not. |
|
|
Lexicographical comparison. This is a global function, not a member function. |
VTL Home
Copyright
© 1999 Konrad-Zuse-Zentrum für Informationstechnik Berlin & Gary Powell All Rights Reserved.