title: What is the difference between std::valarray and std::array
body: <p><code>valarray</code> class look's same to <code>array</code> class, can you please explain me where would I prefer <code>valarray</code> over <code>array</code> or vice versa?</p>