Skip to content

Implement `get_pointer(std::optional)`

Gerhard Raven requested to merge add-optional-get-ptr into master

equivalent of get_pointer( boost::optional ) for std::optional ( see here ):

returns a pointer to the payload of the std::optional argument if the optional is engaged and nullptr otherwise

Merge request reports