mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibRegex: Allow Vector<Match> to use trivial memcpy
Now that Match has no more members that need destruction, we can allow Vector to memcpy them around.
This commit is contained in:
parent
5308d77600
commit
c1c3b01a6c
Notes:
github-actions[bot]
2025-04-14 15:41:14 +00:00
Author: https://github.com/awesomekling
Commit: c1c3b01a6c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4351
1 changed files with 5 additions and 0 deletions
|
@ -594,3 +594,8 @@ struct AK::Formatter<regex::RegexStringView> : Formatter<StringView> {
|
|||
return Formatter<StringView>::format(builder, string);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct AK::Traits<regex::Match> : public AK::DefaultTraits<regex::Match> {
|
||||
constexpr static bool is_trivial() { return true; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue