deduction guides for std::optional - cppreference.com (original) (raw)
| | | | | -------------------------------------------------- | | ------------- | | template< class T >optional(T) -> optional<T>; | | (since C++17) |
One deduction guide is provided for std::optional to account for the edge cases missed by the implicit deduction guides, in particular, non-copyable arguments and array to pointer conversion.