[Click] Adding a replace() method to Vector

Michael Gellman m.gellman at imperial.ac.uk
Tue Apr 4 06:47:16 EDT 2006


On Mon, 2006-04-03 at 11:16 -0700, Eddie Kohler wrote:
> Hi Michael,
> 
> I'm feeling a bit obtuse here.  What's wrong with
> 
>     Vector<T> v;
>     v[i] = new_element;
> 

That indeed works. I think I need to review some Vector references :)

Thanks!

Michael
-- 
Intelligent Systems & Networks Group
Dept of Electrical & Electronic Engineering
Imperial College London
London SW7 2BT



More information about the click mailing list