mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Add an "ElementType" typedef to NonnullOwnPtr and NonnullRefPtr to allow clients to easily find the pointee type. Then use this to remove a template argument from NonnullPtrVector. :^)
16 lines
267 B
C++
16 lines
267 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>, inline_capacity>
|
|
{
|
|
};
|
|
|
|
}
|
|
|
|
using AK::NonnullOwnPtrVector;
|