98 iterator end() {
return Moves + ListSize; }
99 uint Size() {
return ListSize; }
100 void Clear() { ListSize = 0; }
102 assert(ListSize < MAX_LEGAL_MOVES);
107 void resize(std::size_t count) {
108 assert(count <= MAX_LEGAL_MOVES);
109 ListSize =
static_cast<uint
>(count);
112 assert(ListSize < MAX_LEGAL_MOVES);
113 Moves[ListSize++] = sm;
116 assert(index < ListSize);
117 return &(Moves[index]);