mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +00:00
AK: Mark Span<T> as trivial
This commit is contained in:
parent
f59bd33876
commit
6970bf03a9
Notes:
sideshowbarker
2024-07-17 08:34:29 +09:00
Author: https://github.com/alimpfard
Commit: 6970bf03a9
Pull-request: https://github.com/SerenityOS/serenity/pull/15994
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ struct Traits<Span<T>> : public GenericTraits<Span<T>> {
|
|||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
constexpr static bool is_trivial() { return true; }
|
||||
};
|
||||
|
||||
using ReadonlyBytes = Span<u8 const>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue