stl: std::numeric_limits

This commit is contained in:
skypjack
2026-04-13 09:05:36 +02:00
parent 7674036b67
commit 94898f6083
4 changed files with 5 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ namespace entt {
/*! @cond ENTT_INTERNAL */
namespace internal {
static constexpr stl::size_t dense_map_placeholder_position = (std::numeric_limits<stl::size_t>::max)();
static constexpr stl::size_t dense_map_placeholder_position = (stl::numeric_limits<stl::size_t>::max)();
template<typename Key, typename Type>
struct dense_map_node final {

View File

@@ -25,7 +25,7 @@ namespace entt {
/*! @cond ENTT_INTERNAL */
namespace internal {
static constexpr stl::size_t dense_set_placeholder_position = (std::numeric_limits<stl::size_t>::max)();
static constexpr stl::size_t dense_set_placeholder_position = (stl::numeric_limits<stl::size_t>::max)();
template<typename It>
class dense_set_iterator final {

View File

@@ -30,7 +30,7 @@ template<typename>
class meta_factory;
/*! @brief Used to identicate that a sequence container has not a fixed size. */
inline constexpr stl::size_t meta_dynamic_extent = (std::numeric_limits<stl::size_t>::max)();
inline constexpr stl::size_t meta_dynamic_extent = (stl::numeric_limits<stl::size_t>::max)();
} // namespace entt

View File

@@ -6,6 +6,8 @@
/*! @cond ENTT_INTERNAL */
namespace entt::stl {
using std::numeric_limits;
} // namespace entt::stl
/*! @endcond */