mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -75,19 +75,19 @@ constexpr SizeType array_size(T (&)[N])
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr T min(const T& a, const IdentityType<T>& b)
|
||||
constexpr T min(const T& a, IdentityType<T> const& b)
|
||||
{
|
||||
return b < a ? b : a;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr T max(const T& a, const IdentityType<T>& b)
|
||||
constexpr T max(const T& a, IdentityType<T> const& b)
|
||||
{
|
||||
return a < b ? b : a;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr T clamp(const T& value, const IdentityType<T>& min, const IdentityType<T>& max)
|
||||
constexpr T clamp(const T& value, IdentityType<T> const& min, IdentityType<T> const& max)
|
||||
{
|
||||
VERIFY(max >= min);
|
||||
if (value > max)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue