mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Unify type alias declarations
The commit unifies the declaration of type aliases by replacing all typedefs with corresponding using statements. closing https://github.com/official-stockfish/Stockfish/pull/4412 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
ff5a6f8df1
commit
564456a6a8
@@ -45,12 +45,12 @@ struct CaseInsensitiveLess {
|
||||
};
|
||||
|
||||
/// The options container is defined as a std::map
|
||||
typedef std::map<std::string, Option, CaseInsensitiveLess> OptionsMap;
|
||||
using OptionsMap = std::map<std::string, Option, CaseInsensitiveLess>;
|
||||
|
||||
/// The Option class implements each option as specified by the UCI protocol
|
||||
class Option {
|
||||
|
||||
typedef void (*OnChange)(const Option&);
|
||||
using OnChange = void (*)(const Option&);
|
||||
|
||||
public:
|
||||
Option(OnChange = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user