operator []= method
Implementation
void operator []=(Color color, T value) {
if (color == Color.WHITE) {
_white = value;
} else {
_black = value;
}
}
void operator []=(Color color, T value) {
if (color == Color.WHITE) {
_white = value;
} else {
_black = value;
}
}