Something like push_back() for valarray<T>

L

Lionel B

Is it possible to add an element to valarray<T>? Is there something like
push_back() for valarray<T>?

I don't believe so - unlike std::vector, std::valarrays are essentially
non-resizeable (the resize() member destroys the current contents of the
array).
 

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
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top