Specification of how an intermediate render texture should either store or discard its values after being resolved.
More...
|
| constexpr | Variant () noexcept(std::is_nothrow_default_constructible_v< variant_alternative_t< 0, Variant > >) |
| | Default-construct a variant with the first variant alternative, if it is default-constructible.
|
template<typename U>
requires (!std::is_same_v<std::remove_cvref_t<U>, Variant> && variant_has_alternative_v<decltype(F(std::forward<U>(value))), Variant> && std::is_constructible_v<decltype(F(std::forward<U>(value))), U>) |
| constexpr | Variant (U &&value) noexcept(std::is_nothrow_constructible_v< decltype(F(std::forward< U >(value))), U >) |
| | Converting constructor.
|
template<typename T, typename... Args>
requires (variant_has_alternative_v<T, Variant> && std::is_constructible_v<T, Args...>) |
| constexpr | Variant (std::in_place_type_t< T > type, Args &&... args) |
| | Construct a variant alternative in-place given its type.
|
template<typename T, typename U, typename... Args>
requires (variant_has_alternative_v<T, Variant> && std::is_constructible_v<T, std::initializer_list<U>&, Args...>) |
| constexpr | Variant (std::in_place_type_t< T > type, std::initializer_list< U > ilist, Args &&... args) |
| | Construct a variant alternative in-place given its type, with an initializer list as the first constructor argument.
|
template<std::size_t Index, typename... Args>
requires (Index < sizeof...(Ts) && std::is_constructible_v<variant_alternative_t<Index, Variant>, Args...>) |
| constexpr | Variant (std::in_place_index_t< Index > index, Args &&... args) |
| | Construct a variant alternative in-place given its index.
|
template<std::size_t Index, typename U, typename... Args>
requires (Index < sizeof...(Ts) && std::is_constructible_v<variant_alternative_t<Index, Variant>, std::initializer_list<U>&, Args...>) |
| constexpr | Variant (std::in_place_index_t< Index > index, std::initializer_list< U > ilist, Args &&... args) |
| | Construct a variant alternative in-place given its index, with an initializer list as the first constructor argument.
|
| constexpr | Variant (const Variant &other)=delete |
| | Deleted copy constructor.
|
| constexpr | Variant (Variant &&other) noexcept=default |
| | Trivial move constructor.
|
| constexpr | ~Variant () |
| | Destructor.
|
| constexpr Variant & | operator= (const Variant &other)=delete |
| | Deleted copy assignment.
|
| constexpr T & | emplace (Args &&... args) |
| | Construct an alternative given its type, destroying the old value.
|
| constexpr void | swap (Variant &other) noexcept(((std::is_nothrow_move_constructible_v< Ts > &&std::is_nothrow_swappable_v< Ts >) &&...)) |
| | Swap this variant's value with that of another.
|
| constexpr index_type | index () const noexcept |
| | Get the alternative index of the currently active value held by the variant.
|
| constexpr bool | valueless_by_exception () const noexcept |
| | Check if the variant is in the valueless by exception state.
|
| constexpr bool | is () const noexcept |
| | Check if the variant currently holds the alternative with the given type.
|
| constexpr T & | as () &noexcept |
| | Access the underlying value with the given type without a safety check.
|
| constexpr T & | get () & |
| | Access the underlying value with the given type.
|
| constexpr T * | get_if () noexcept |
| | Access the underlying value with the given type if it is the currently active alternative.
|
|
| using | index_type |
| | Index type used to encode the active alternative type.
|
| static constexpr decltype(auto) | visit (Visitor &&visitor, V &&variant) |
| | Call a visitor functor with the currently active underlying value of a variant.
|
| static constexpr decltype(auto) | visitIndex (index_type index, Visitor &&visitor) |
| | Call a visitor functor with the type corresponding to a variant index.
|
| static constexpr decltype(auto) | apply (Function &&function) |
| | Call a functor with all alternative types.
|
| static constexpr index_type | npos |
| | Invalid alternative index, representing the valueless by exception state.
|
Specification of how an intermediate render texture should either store or discard its values after being resolved.