Hi Olga,
there is currently no similar method on ArrayList. If you know the target
size of the ArrayList at time of construction, you can specify this to the
constructor:
val a = new ArrayList[Double](size);
If a new element is added when the backing GrowableRail is already full,
the backing storage will be resized (doubled).
Do you have an example code where you need to dynamically grow or shrink
the ArrayList to a particular size?
Cheers,
Josh
On 16 October 2014 08:18, Olga Gryshchenko <gryshchenko.olg...@gmail.com>
wrote:
> Hello, could someone please help me with the following:
>
> is there something similar that I could do with ArrayList to get the
> corresponding operation to std::vector::resize(size_type n, value_type val
> = value_type()) in c++?
>
> Thank you in advance.
>
> --
> Best regards,
> Olga Gryshchenko
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users