Skip to content

prefer std::optional<T> over std::pair<bool, T>

Gerhard Raven requested to merge prefer_optional into master

replace std::pair<bool, T> with std::optional<T> and adapt code.

Also, avoid looking up the same thing twice...

Edited by Gerhard Raven

Merge request reports