mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00

These can just inherit from a shared base template. Thanks to Robin for the sweet idea :^)
15 lines
270 B
C++
15 lines
270 B
C++
#pragma once
|
|
|
|
#include <AK/NonnullPtrVector.h>
|
|
#include <AK/NonnullOwnPtr.h>
|
|
|
|
namespace AK {
|
|
|
|
template<typename T, int inline_capacity = 0>
|
|
class NonnullOwnPtrVector : public NonnullPtrVector<NonnullOwnPtr<T>, T, inline_capacity>
|
|
{
|
|
};
|
|
|
|
}
|
|
|
|
using AK::NonnullOwnPtrVector;
|