Category: adaptors |
Component type: type |
The zip_view template represents the BinOp(a,b)
for corresponding elements a
in container_a
and b
in container_b
.
zip_views
are mutable if and only if the const_tag
template parameter is mutable_view_tag
.
Note that changing elements of the containers may result in
invalidated iterators and may change the size of the view.
A zip_view
owns its referenced container, if its base
template parameter is aggregated_ownership,
it merely references its
container, if the base template parameter is referenced_ownership.
Parameter |
Description |
Default |
container_a |
The view's container type: the type of container referenced by this view |
|
container_b |
The view's container type: the type of container referenced by this view |
|
BinOp |
The view's operator, for every element |
|
|
The view's const tag: either |
|
|
The view's directional iterator category |
The minium of |
|
The view's ownership type: the base_a class that determines if the view references or owns the container_a |
|
|
The view's ownership type: the base_b class that determines if the view references or owns the container_b |
|
Defined in the header zip_view.hpp.
Container satisfies |
View satisfies |
Container [1] |
|
Forward Container [1] |
|
Reversible Container [1] |
|
Random Access Container [1] |
Member |
Where defined |
Description |
|
The type |
|
|
The type of the referenced container_a. |
|
|
The type of the referenced container_b. |
|
|
Pointer to T. |
|
|
Reference to T. |
|
|
Const reference to T. |
|
|
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 the view. |
|
|
Const iterator used to iterate backwards through the view. |
|
|
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 reversible
container's only. Returns a |
|
|
Valid for reversible
container's only. Returns a |
|
|
Valid for reversible
container's only. Returns a |
|
|
Valid for reversible
container's only. Returns a |
|
|
Returns the size of the view. |
|
|
Returns the largest possible size of the view. |
|
|
true if the view's size is 0. |
|
|
Returns a |
|
|
Returns a |
|
|
Returns a |
|
|
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.