| 667 | |
| 668 | template<typename U> |
| 669 | static AE_FORCEINLINE char* align_for(char* ptr) AE_NO_TSAN |
| 670 | { |
| 671 | const std::size_t alignment = std::alignment_of<U>::value; |
| 672 | return ptr + (alignment - (reinterpret_cast<std::uintptr_t>(ptr) % alignment)) % alignment; |
| 673 | } |
| 674 | private: |
| 675 | #ifndef NDEBUG |
| 676 | struct ReentrantGuard |
nothing calls this directly
no outgoing calls
no test coverage detected