Agent-Hellboy / Agent-Hellboy/cpp-filetype
Refactor filetype::match() and others to return std::optional<const Type> instead of nullptr
Offen
- Vorherrschende Sprache
- C++
- Sterne
- 0
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
With std::optional, the caller is forced to check whether a value is present using methods like has_value() or by directly comparing against std::nullopt. This reduces the risk of dereferencing a null pointer.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.