Add is_zero_constructible to denote if a type can be semi-trivially constructed with all 0 bytes.
Optimize `CowData` and `LocalVector` resize for zero constructible types. Mark several compatible types as `is_zero_constructible`.
This commit is contained in:
parent
78c9f8ddd9
commit
75bc471965
19 changed files with 93 additions and 11 deletions
|
|
@ -236,3 +236,6 @@ bool Face3::intersects_aabb2(const AABB &p_aabb) const {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
struct is_zero_constructible<Face3> : std::true_type {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue