I am reading std::optional in the page 539 of the draft n4791.
I notice that there is a
template<class T>
optional(T) -> optional<T>;
What is the meaning of this statement?
How does it affect std::optional?
Thanks.
That's a deduction guide. It allows statements like this:
std::optional o(42); // o has type std::optional<int>