| 154 | |
| 155 | template<typename U> |
| 156 | static inline char* align_for(char* ptr) |
| 157 | { |
| 158 | const std::size_t alignment = std::alignment_of<U>::value; |
| 159 | return ptr + (alignment - (reinterpret_cast<std::uintptr_t>(ptr) % alignment)) % alignment; |
| 160 | } |
| 161 | } |
| 162 | |
| 163 |
nothing calls this directly
no outgoing calls
no test coverage detected