3 * \remark This file is part of VITA.
5 * \copyright Copyright (C) 2017-2019 EOS di Manlio Morini.
8 * This Source Code Form is subject to the terms of the Mozilla Public
9 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
10 * You can obtain one at http://mozilla.org/MPL/2.0/
13#if !defined(VITA_POPULATION_H)
14# error "Don't include this file directly, include the specific .h instead"
17#if !defined(VITA_POPULATION_COORD_TCC)
18#define VITA_POPULATION_COORD_TCC
21/// Holds the coordinates of an individual in a population.
24struct population<T>::coord
29 bool operator==(coord rhs) const
30 { return layer == rhs.layer && index == rhs.index; }
32 bool operator!=(coord rhs) const
33 { return !(*this == rhs); }
35 bool operator<(coord rhs) const
37 return layer < rhs.layer
38 || (layer == rhs.layer && index < rhs.index);
42#endif // include guard