Function operator Type

Synopsis

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

template <typename Type>
operator Type() const noexcept

Description

Gets a value of a specific type for a given key.

Template Parameters:

Type - Type of the value to get.

Return
Stored value, if any.

Source

Lines 40-43 in src/entt/core/monostate.hpp.

template<typename Type>
operator Type() const ENTT_NOEXCEPT {
    return value<Type>;
}





Add Discussion

Log in to comment