valarray против вектора: почему был введен valarray?

Да этобыл задан ранееи ответ был:

valarrays (value arrays) are intended to bring some of the speed of Fortran to C++. You wouldn't make a valarray of pointers so the compiler can make assumptions about the code and optimise it better. (The main reason that Fortran is so fast is that there is no pointer type so there can be no pointer aliasing.)

или же:

valarray is also supposed to eliminate any possibility of aliasing [...]

Но эти ответы не имеют смысла для меня.

valarray а такжеvector являютсяclass templatesи, как таковые, они даже неexist пока не создан.
И, конечно же,vector<int> не вызывает проблем с псевдонимами больше, чемvalarray<int> делает.

Учитывая это, какова была цельvalarrayи почему они не просто поместили ту же функциональность вvector вместо?

Ответы на вопрос(2)

Ваш ответ на вопрос