concepts: cvref_unqualified (QoL series)

This commit is contained in:
skypjack
2026-01-30 18:15:11 +01:00
parent e74aac0626
commit 3971113c3c
3 changed files with 19 additions and 0 deletions

View File

@@ -133,6 +133,7 @@ if(ENTT_INCLUDE_HEADERS)
core/any.hpp
core/bit.hpp
core/compressed_pair.hpp
core/concepts.hpp
core/enum.hpp
core/family.hpp
core/fwd.hpp

View File

@@ -0,0 +1,17 @@
#ifndef ENTT_CORE_CONCEPTS_HPP
#define ENTT_CORE_CONCEPTS_HPP
#include <type_traits>
namespace entt {
/**
* @brief Specifies that a type is not a cv-qualified reference.
* @tparam Type Type to check.
*/
template<typename Type>
concept cvref_unqualified = std::is_same_v<std::remove_cvref_t<Type>, Type>;
} // namespace entt
#endif

View File

@@ -12,6 +12,7 @@ namespace entt {}
#include "core/any.hpp"
#include "core/bit.hpp"
#include "core/compressed_pair.hpp"
#include "core/concepts.hpp"
#include "core/enum.hpp"
#include "core/family.hpp"
#include "core/hashed_string.hpp"