mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
6a5446d6dd
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. :^)
15 lines
267 B
C++
15 lines
267 B
C++
#pragma once
|
|
|
|
#include <AK/NonnullPtrVector.h>
|
|
#include <AK/NonnullRefPtr.h>
|
|
|
|
namespace AK {
|
|
|
|
template<typename T, int inline_capacity = 0>
|
|
class NonnullRefPtrVector : public NonnullPtrVector<NonnullRefPtr<T>, inline_capacity>
|
|
{
|
|
};
|
|
|
|
}
|
|
|
|
using AK::NonnullRefPtrVector;
|