tested for no regression.
STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 37378 W: 6649 L: 6556 D: 24173
No functional change.
Closes #1071
#ifndef MOVEGEN_H_INCLUDED
#define MOVEGEN_H_INCLUDED
+#include <algorithm>
+
#include "types.h"
class Position;
const ExtMove* end() const { return last; }
size_t size() const { return last - moveList; }
bool contains(Move move) const {
- for (const auto& m : *this) if (m == move) return true;
- return false;
+ return std::find(begin(), end(), move) != end();
}
private: