|
template<typename Type , bool TF> |
void | blaze::reset (DynamicVector< Type, TF > &v) |
| Resetting the given dynamic vector. More...
|
|
template<typename Type , bool TF> |
void | blaze::clear (DynamicVector< Type, TF > &v) |
| Clearing the given dynamic vector. More...
|
|
template<typename Type , bool TF> |
bool | blaze::isDefault (const DynamicVector< Type, TF > &v) |
| Returns whether the given dynamic vector is in default state. More...
|
|
template<typename Type , bool TF> |
bool | blaze::isIntact (const DynamicVector< Type, TF > &v) |
| Returns whether the invariants of the given dynamic vector are intact. More...
|
|
template<typename Type , bool TF> |
void | blaze::swap (DynamicVector< Type, TF > &a, DynamicVector< Type, TF > &b) |
| Swapping the contents of two vectors. More...
|
|
template<typename Type , bool TF> |
void | blaze::move (DynamicVector< Type, TF > &dst, DynamicVector< Type, TF > &src) |
| Moving the contents of one dynamic vector to another. More...
|
|
template<typename Type , bool TF>
Returns whether the given dynamic vector is in default state.
- Parameters
-
v | The dynamic vector to be tested for its default state. |
- Returns
- true in case the given vector's size is zero, false otherwise.
This function checks whether the dynamic vector is in default (constructed) state, i.e. if it's size is 0. In case it is in default state, the function returns true, else it will return false. The following example demonstrates the use of the isDefault() function:
template<typename Type , bool TF>
Returns whether the invariants of the given dynamic vector are intact.
- Parameters
-
v | The dynamic vector to be tested. |
- Returns
- true in case the given vector's invariants are intact, false otherwise.
This function checks whether the invariants of the dynamic vector are intact, i.e. if its state is valid. In case the invariants are intact, the function returns true, else it will return false. The following example demonstrates the use of the isIntact() function: