| 34 | |
| 35 | template<class T> |
| 36 | [[nodiscard]] const T *at(size_t s) const noexcept { |
| 37 | if (s + sizeof(T) > size()) { |
| 38 | return nullptr; |
| 39 | } else { |
| 40 | return (const T *) (((const char *) get()) + s); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | template<class T> |
| 45 | [[nodiscard]] T *at(size_t s) noexcept { |
nothing calls this directly
no outgoing calls
no test coverage detected