Resizes the valarray to contain count elements and assigns value to each element.
This functions invalidates all pointers and references to elements in the array.
[edit] Parameters count - new size of the container value - the value to initialize the new elements with [edit] Return value(none)
[edit] Example#include <iostream> #include <valarray> int main() { std::valarray<int> v{1, 2, 3}; v.resize(10); for (int n : v) std::cout << n << ' '; std::cout << '\n'; }
Output:
[edit] See also returns the size of valarrayRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4