Struct optional_storage_policy_for< basic_optional< StoragePolicy > >

Synopsis

#include <include/type_safe/optional.hpp>

template <class StoragePolicy>
struct optional_storage_policy_for<basic_optional<StoragePolicy>>

Description

Specialization of [ts::optional_storage_policy_for]() for [ts::basic_optional]() itself.

It will simply forward to the same policy, so ts::optional_for<ts::optional<T>> is simply ts::optional<T>, not ts::optional<ts::optional<T>>. \module optional

Source

Lines 118-122 in include/type_safe/optional.hpp.

template <class StoragePolicy>
struct optional_storage_policy_for<basic_optional<StoragePolicy>>
{
    using type = StoragePolicy;
};





Add Discussion as Guest

Log in