| 5 | |
| 6 | template <typename T> |
| 7 | class numeric_limits { |
| 8 | public: |
| 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 |
| 31 | template <> |
nothing calls this directly
no outgoing calls
no test coverage detected