mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:37:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -26,13 +26,13 @@ public:
|
|||
~NeverDestroyed() = default;
|
||||
|
||||
T* operator->() { return &get(); }
|
||||
const T* operator->() const { return &get(); }
|
||||
T const* operator->() const { return &get(); }
|
||||
|
||||
T& operator*() { return get(); }
|
||||
const T& operator*() const { return get(); }
|
||||
T const& operator*() const { return get(); }
|
||||
|
||||
T& get() { return reinterpret_cast<T&>(storage); }
|
||||
const T& get() const { return reinterpret_cast<T&>(storage); }
|
||||
T const& get() const { return reinterpret_cast<T&>(storage); }
|
||||
|
||||
private:
|
||||
alignas(T) u8 storage[sizeof(T)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue