Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 30, 2024
1 parent 9f26e2b commit 9120cdf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/utils/lockfree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LockfreePoolingAllocator {
}

template <typename U>
explicit LockfreePoolingAllocator(const LockfreePoolingAllocator<U, CAPACITY>&) noexcept {}
explicit LockfreePoolingAllocator(const LockfreePoolingAllocator<U, CAPACITY> &) noexcept { }

T* allocate(std::size_t n) {
if (n == 1) {
Expand All @@ -72,8 +72,12 @@ class LockfreePoolingAllocator {
std::pmr::get_default_resource()->deallocate(p, n * sizeof(T), alignof(T));
}

bool operator==(const LockfreePoolingAllocator&) const noexcept { return true; }
bool operator!=(const LockfreePoolingAllocator&) const noexcept { return false; }
bool operator==(const LockfreePoolingAllocator &) const noexcept {
return true;
}
bool operator!=(const LockfreePoolingAllocator &) const noexcept {
return false;
}

private:
static void preallocateOnce() {
Expand Down

0 comments on commit 9120cdf

Please sign in to comment.