| 69 | |
| 70 | template <typename Vector> |
| 71 | bool UsesStaticStorage(const Vector& v) { |
| 72 | const uint8_t* p = reinterpret_cast<const uint8_t*>(v.data()); |
| 73 | if (p == nullptr) { |
| 74 | return true; |
| 75 | } |
| 76 | const uint8_t* v_start = reinterpret_cast<const uint8_t*>(&v); |
| 77 | return (p >= v_start && p < v_start + sizeof(v)); |
| 78 | } |
| 79 | |
| 80 | struct StaticVectorTraits { |
| 81 | template <typename T, size_t N> |
no test coverage detected