valarray question

M

m_schellens

Does the standard say anything about the result of

eg.
template<class Ty>
valarray<Ty> pow(const valarray<Ty>& left,
const valarray<Ty>& right);

if the number of elements in left an right differ?
thanks,
marc
 
R

Rolf Magnus

Does the standard say anything about the result of

eg.
template<class Ty>
valarray<Ty> pow(const valarray<Ty>& left,
const valarray<Ty>& right);

if the number of elements in left an right differ?

Yes. The result is undefined.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,666
Latest member
selsetu

Latest Threads

Top