Throws if size/capacity is too big, and returns cast to uint32_t
| 44 | |
| 45 | // Throws if size/capacity is too big, and returns cast to uint32_t |
| 46 | static uint32_t rangeCheck(size_t n) { |
| 47 | if (_usuallyFalse(n > max_size)) |
| 48 | throw std::domain_error("smallVector size/capacity too large"); |
| 49 | return uint32_t(n); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | // Pointer to first item |
nothing calls this directly
no outgoing calls
no test coverage detected