Struct constness_as< To, const From >

Synopsis

#include <src/entt/core/type_traits.hpp>

template<typename To, typename From>
struct constness_as<To, const From>

Description

Transcribes the constness of a type to another type.

Template Parameters

To - The type to which to transcribe the constness.

From - The type from which to transcribe the constness.

Source

Lines 338-342 in src/entt/core/type_traits.hpp.

template<typename To, typename From>
struct constness_as<To, const From> {
    /*! @brief The type resulting from the transcription of the constness */
    using type = std::add_const_t<To>;
};





Add Discussion

Log in to comment