Another way of writting

What would be another way of writing this?

 
  max(max(population1, population2), max(population3, population4))
it's clear and succinct enough as it is, why do you need another way? send some more context
> max(max(population1, population2), max(population3, population4))
> What would be another way of writing this?

1
2
// overload (3) http://en.cppreference.com/w/cpp/algorithm/max
const auto max_pop = std::max( { population1, population2, population3, population4 } ) ;
 
max (max (population1, max(population2, max (population3, population4))));

perhaps?
Topic archived. No new replies allowed.