POV-Ray : Newsgroups : povray.off-topic : Parametric polymorphism : Re: Parametric polymorphism Server Time
29 Jul 2024 04:23:40 EDT (-0400)
  Re: Parametric polymorphism  
From: Le Forgeron
Date: 10 May 2012 10:41:19
Message: <4fabd38f@news.povray.org>
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.

-- 
Real software engineers work from 9 to 5, because that is
the way the job is described in the formal spec.  Working
late would feel like using an undocumented external procedure.


Post a reply to this message

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