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:
Andreas Kling 2025-04-13 18:25:46 +02:00 committed by Andreas Kling
commit c1c3b01a6c
Notes: github-actions[bot] 2025-04-14 15:41:14 +00:00

View file

@ -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; }
};