Agent-Hellboy / Agent-Hellboy/cpp-filetype
Refactor filetype::match() and others to return std::optional<const Type> instead of nullptr
Aberta
- Linguagem predominante
- C++
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.