Constructs an optional from a U, but deletes the constructor if
Synopsis
Declared in <beman/optional/optional.hpp>
template<class U>
requires (std::is_constructible_v<T&, U> && !(std::is_same_v<std::remove_cvref_t<U>, in_place_t>) &&
!(std::is_same_v<std::remove_cvref_t<U>, optional>) &&
detail::reference_constructs_from_temporary_v<T&, U>)
constexpr
optional(U&& u) = delete;
Template Parameters
Name |
Description |
U |
Created with MrDocs