468,512 Members | 948 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Something like push_back() for valarray<T>

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

Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn


Jan 18 '08 #1
1 6037
On Fri, 18 Jan 2008 05:34:47 -0800, Alex Vinokur wrote:
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).

--
Lionel B
Jan 18 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by john smith | last post: by
10 posts views Thread by Stefan Höhne | last post: by
2 posts views Thread by Jim West | last post: by
1 post views Thread by Busin | last post: by
6 posts views Thread by Joe | last post: by
2 posts views Thread by Steven T. Hatton | last post: by
1 post views Thread by Dack | last post: by
43 posts views Thread by john | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.