I have to hack on an Objective-C++ project and I am trying to figure out how optionals work there. What's the analogous of std::optional there?
Simple example:
- (void)foo:(CGSize)first
second:(nullable CGSize*)second;
I can now pass nil if I want to omit second.
However, I cannot figure out how to construct a pointer to CGSize to pass it to foo.