mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-04 05:19:58 +03: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. :^)
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;
|