| 317 | }; |
| 318 | |
| 319 | struct CenterOrder |
| 320 | { |
| 321 | T D; |
| 322 | CenterOrder(const T& d) |
| 323 | : D(d) |
| 324 | { |
| 325 | } |
| 326 | |
| 327 | bool operator()(const CellInfo& pc0, const CellInfo& pc1) |
| 328 | { |
| 329 | return (pc0.Min[this->D] + pc0.Max[this->D]) < (pc1.Min[this->D] + pc1.Max[this->D]); |
| 330 | } |
| 331 | }; |
| 332 | |
| 333 | struct LeftPredicate |
| 334 | { |