mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Explicitly defaulted and deleted members
Better than a bit obscure implicit ones. No functional change.
This commit is contained in:
@@ -45,11 +45,10 @@ namespace Time {
|
||||
|
||||
template<class Entry, int Size>
|
||||
struct HashTable {
|
||||
HashTable() : table(Size, Entry()) {}
|
||||
Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; }
|
||||
|
||||
private:
|
||||
std::vector<Entry> table;
|
||||
std::vector<Entry> table = std::vector<Entry>(Size);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user