Struct constness_as

Synopsis

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

template<typename To, typename From>
struct constness_as

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 330-334 in src/entt/core/type_traits.hpp.

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





Add Discussion

Log in to comment