POV-Ray : Newsgroups : povray.off-topic : Swapping vector elements : Swapping vector elements Server Time
28 Jul 2024 14:31:38 EDT (-0400)
  Swapping vector elements  
From: Orchid Win7 v1
Date: 14 Jan 2014 16:21:30
Message: <52d5aa5a$1@news.povray.org>
OK, so we have a std::vector of pointers to task objects. How do we swap 
a pair of elements to change their order?

Half the Internet claims this is std::swap(), the other half claim it's 
std::swap_iter(), and a few people claim it's something else again...


Post a reply to this message

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