Struct optional_storage_policy_for< T & >

Synopsis

#include <include/type_safe/optional.hpp>

template <typename T>
struct optional_storage_policy_for<T&>

Description

Specialization of [ts::optional_storage_policy_for]() for lvalue references.

It will use [ts::reference_optional_storage]() as policy. \module optional

Source

Lines 131-135 in include/type_safe/optional.hpp.

template <typename T>
struct optional_storage_policy_for<T&>
{
    using type = reference_optional_storage<T>;
};





Add Discussion as Guest

Log in