POV-Ray : Newsgroups : povray.off-topic : Swapping vector elements : Re: Swapping vector elements Server Time
28 Jul 2024 14:24:52 EDT (-0400)
  Re: Swapping vector elements  
From: Orchid Win7 v1
Date: 15 Jan 2014 15:49:43
Message: <52d6f467$1@news.povray.org>
On 15/01/2014 07:16 PM, Warp wrote:
> If you are indexing the vector directly, then just do a
>
>    std::swap(v[index1], v[index2]);

This is probably pretty much exactly what the code needs to do. (The 
code sits behind a GUI where the user can reorder the contents of a list.)


Post a reply to this message

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