POV-Ray : Newsgroups : povray.off-topic : Parametric polymorphism : Re: Parametric polymorphism Server Time
29 Jul 2024 04:22:00 EDT (-0400)
  Re: Parametric polymorphism  
From: Le Forgeron
Date: 11 May 2012 10:53:00
Message: <4fad27cc@news.povray.org>
Le 11/05/2012 16:13, Invisible a écrit :
> On 10/05/2012 03:41 PM, Le_Forgeron wrote:
>> You will be delighted by the C++11 range-based for loop:
>>
>> for(auto i : whateverSTL)
>> {
>>    // here you have all the element of the container as i, one at a time
>>
>> }
>>
>>
>> no need for template, just basic code.
> 
> STL?
> 
> As in Standard TEMPLATE Library?
> 
> Yeah, no templates here. ;-)


I was thinking: no need to write your own template (with bug).


Post a reply to this message

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