Skip to content

Commit d09a76c

Browse files
committed
clang format
1 parent 02594b9 commit d09a76c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

slot_map/slot_map.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ template <typename T, typename TKeyType = slot_map_key64<T>, size_t PAGESIZE = 4
397397
static inline constexpr size_type kMinFreeIndices = static_cast<size_type>(MINFREEINDICES);
398398

399399
private:
400-
struct ValueStorage {
400+
struct ValueStorage
401+
{
401402
std::byte data[sizeof(T)];
402403
};
403404

@@ -502,7 +503,10 @@ template <typename T, typename TKeyType = slot_map_key64<T>, size_t PAGESIZE = 4
502503
};
503504

504505
static inline size_type align(size_type cursor, size_type alignment) noexcept { return (cursor + (alignment - 1)) & ~(alignment - 1); }
505-
static inline bool isPointerAligned(const void* cursor, size_t alignment) noexcept { return (uintptr_t(cursor) & (alignment - 1)) == 0; }
506+
static inline bool isPointerAligned(const void* cursor, size_t alignment) noexcept
507+
{
508+
return (uintptr_t(cursor) & (alignment - 1)) == 0;
509+
}
506510

507511
template <typename TYPE, class... Args> static void construct(void* mem, Args&&... args)
508512
{

0 commit comments

Comments
 (0)