It has two outcomes, hence is a d2
faint_marble_noise @ faint_marble_noise @programming.dev Posts 0Comments 6Joined 4 mo. ago
faint_marble_noise @ faint_marble_noise @programming.dev
Posts
0
Comments
6
Joined
4 mo. ago
This allows to use methods of optional (c++23 added a couple of nice ones), as opposed to raw pointer. It seems to be obvious, but there is no mention of it in the discussion behind the link.