31

Up until fairly recently I hadn't been keeping up with the C++11 deliberations. As I try to become more familiar with it and the issues being worked, I came across this site which seems to be advocating for deprecating or removing std::valarray since most people are using Blitz++ instead. I guess I'm probably one of the few people out there who still uses std::valarray (and yes I know the class has a sordid past, a tarnished present, and a questionable future). But, it does what I need, and perhaps more important, it's part of the standard (for now any way).

Aside from the one site above, I've been able to find very little on what is actually happening with std::valarray in the new standard, and was hoping that somebody on SO might be able to provide some insight and / or references where Google, Wikipedia and even the C++ Standards Committee Web Site have so far failed me. Thanks.

andand
  • 17,134
  • 11
  • 53
  • 79
  • 5
    If you're going to migrate from valarry to anything else (not that there seems to be any particular reason for you to if you're happy with it), take a look at Eigen as an alternative to Blitz. http://eigen.tuxfamily.org/index.php?title=Main_Page . – timday Apr 05 '10 at 09:28

1 Answers1

30

std::valarray is included in C++11. It has not been deprecated or removed. It has been updated to include move operations

std::valarray is defined in §26.6[numarray] of the C++11 language standard.

James McNellis
  • 348,265
  • 75
  • 913
  • 977