valarray class look’s same to array class, can you please explain me where would I prefer valarray over array or vice versa?
valarray class look’s same to array class, can you please explain me where would
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
valarraywas already in C++03,arrayis new in C++11valarrayis variable length,arrayis not.valarrayis designed for numeric computations and provides plenty of operations including+,-,*,cos,sin, etc…arraydoes not.valarrayhas an interface to retrieve slices of the array (sub arrays),arraydoes not.