Returns a size, that is equal or more than the given size, and compatible with the given alignment. */
| 16 | with the given alignment. |
| 17 | */ |
| 18 | constexpr size_t alignUp(size_t size, size_t alignment) { |
| 19 | // See details here: |
| 20 | // https://github.com/KabukiStarship/KabukiToolkit/wiki/Fastest-Method-to-Align-Pointers#observations |
| 21 | return (size + alignment - 1) & ~(alignment - 1); |
| 22 | } |
| 23 | |
| 24 | template<typename T, typename ValueType> |
| 25 | struct InlineContainerAllocator { |
no outgoing calls
no test coverage detected