make small_vector works with pod

This commit is contained in:
blueloveTH 2024-06-08 14:21:59 +08:00
parent 60e1f77f8d
commit 3dafa7573c

View File

@ -284,6 +284,8 @@ struct vector {
template <typename T, std::size_t N>
struct small_vector {
static_assert(is_pod_v<T>);
alignas(T) char _buffer[sizeof(T) * N];
T* _begin;
T* _end;