Struct optional_storage_policy_for< object_ref< T, XValue > >

Synopsis

#include <include/type_safe/reference.hpp>

template <typename T, bool XValue>
struct optional_storage_policy_for<object_ref<T, XValue>>

Description

Sets the [ts::basic_optional]() storage policy for [ts::object_ref]() to [ts::reference_optional_storage]().

It will be used when the optional is rebound. \module optional

Source

Lines 146-150 in include/type_safe/reference.hpp.

template <typename T, bool XValue>
struct optional_storage_policy_for<object_ref<T, XValue>>
{
    using type = reference_optional_storage<T, XValue>;
};





Add Discussion as Guest

Log in