// "city_swap.cpp" // (c) OPAC Team, LIFL, 2002 /* Contact: paradiseo-help@lists.gforge.inria.fr */ #include #include "city_swap.h" bool CitySwap :: operator () (Route & __route) { std :: swap (__route [rng.random (__route.size ())], __route [rng.random (__route.size ())]) ; __route.invalidate () ; return true ; }