]> git.sesse.net Git - stockfish/commit - src/syzygy/tbprobe.cpp
Replace some std::string occurrences with std::string_view
authorSebastian Buchwald <UniQP@web.de>
Sat, 7 Jan 2023 13:53:59 +0000 (14:53 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 9 Jan 2023 19:28:24 +0000 (20:28 +0100)
commite9e7a7b83f78b5c7d29f69083589b449d9b52390
tree6aa1f7d1d8985bdc39f329ee4df907308ffca8fc
parent5a88c5bb9b3e5ee431ac85abb8981b1571b68b2d
Replace some std::string occurrences with std::string_view

std::string_view is more lightweight than std::string. Furthermore,
std::string_view variables can be declared constexpr.

closes https://github.com/official-stockfish/Stockfish/pull/4328

No functional change
src/misc.cpp
src/nnue/evaluate_nnue.cpp
src/position.cpp
src/syzygy/tbprobe.cpp