##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::valarray::size

From cppreference.com
< cpp‎ | numeric‎ | valarray

std::size_t size() const; |  |

Returns the number of elements in the valarray.

### [edit] Parameters

(none)

### [edit] Return value

Number of elements in the valarray.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

resize | changes the size of valarray (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/valarray/size&oldid=58803"
Category:

- Todo no example