MCPcopy Create free account
hub / github.com/IntegralPilot/wasm_os / numeric_limits

Class numeric_limits

stdlib/cpp/limits.hpp:7–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6template <typename T>
7class numeric_limits {
8public:
9 // Not all of these are required for the vector implementation,
10 // but they are part of the standard numeric_limits interface.
11
12 // Integer limits
13 static constexpr bool is_specialized = false;
14 static constexpr T min() noexcept { return T(); }
15 static constexpr T max() noexcept { return T(); }
16 static constexpr int digits = 0;
17 static constexpr int digits10 = 0;
18 static constexpr int max_digits10 = 0;
19
20 // Floating-point limits (not used by vector, but provided for completeness)
21 static constexpr bool is_signed = false;
22 static constexpr bool is_integer = false;
23 static constexpr bool is_exact = false;
24 static constexpr int radix = 0;
25 static constexpr T epsilon() noexcept { return T(); }
26 static constexpr T round_error() noexcept { return T(); }
27 // ... [add other floating-point limits as needed] ...
28};
29
30// Specialization for size_t
31template <>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected