| 30 | |
| 31 | template <size_t Alignment, typename T> |
| 32 | constexpr T align_value(T value) { |
| 33 | constexpr auto alignment {static_cast<T>(Alignment)}; |
| 34 | |
| 35 | value += alignment - 1; |
| 36 | value &= ~(alignment - 1); |
| 37 | |
| 38 | return value; |
| 39 | } |
| 40 | |
| 41 | #if (defined _MSC_VER) |
| 42 | constexpr bool is_cl_or_clang_cl = true; |
nothing calls this directly
no outgoing calls
no test coverage detected