Leverage std::optional for better readability
Instead of repeated hasProperty checks, do that once and then leverage the std::optional behavior to simplify the code.
Please register or sign in to comment
Instead of repeated hasProperty checks, do that once and then leverage the std::optional behavior to simplify the code.