Agent-Hellboy / Agent-Hellboy/cpp-filetype
Refactor filetype::match() and others to return std::optional<const Type> instead of nullptr
Đang mở
- Ngôn ngữ chính
- C++
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.