POV-Ray : Newsgroups : povray.off-topic : Smart little programming tricks, where to find ? : Re: Smart little programming tricks, where to find ? Server Time
10 Oct 2024 23:17:34 EDT (-0400)
  Re: Smart little programming tricks, where to find ?  
From: stbenge
Date: 20 Mar 2008 16:23:59
Message: <47e2d5ef@news.povray.org>
Warp wrote:
>   Yeah. You can do that with a one-liner:
> 
> std::vector<std::vector<int> > foo(nx, std::vector<int>(ny));
> 
>   And you don't have to delete anything.
> 

Hmm, I'll consider using this in the future. If I'm lucky, I can even 
change my existing code to accommodate it. Thanks!

Sam


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.