From c85eaadb48c34c53fd72817d138cb49ddd295550 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 2 Dec 2020 02:49:30 +0330 Subject: [PATCH] AK: Forward declare Nonnull{Own,Ref}PtrVector --- AK/Forward.h | 8 ++++++++ AK/NonnullOwnPtrVector.h | 2 +- AK/NonnullRefPtrVector.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/AK/Forward.h b/AK/Forward.h index c0bbdbfddc..c1dccb3f55 100644 --- a/AK/Forward.h +++ b/AK/Forward.h @@ -109,6 +109,12 @@ class NonnullRefPtr; template class NonnullOwnPtr; +template +class NonnullRefPtrVector; + +template +class NonnullOwnPtrVector; + template class Optional; @@ -154,7 +160,9 @@ using AK::JsonObject; using AK::JsonValue; using AK::LogStream; using AK::NonnullOwnPtr; +using AK::NonnullOwnPtrVector; using AK::NonnullRefPtr; +using AK::NonnullRefPtrVector; using AK::Optional; using AK::OutputMemoryStream; using AK::OutputStream; diff --git a/AK/NonnullOwnPtrVector.h b/AK/NonnullOwnPtrVector.h index ae4aca2954..f42487e33e 100644 --- a/AK/NonnullOwnPtrVector.h +++ b/AK/NonnullOwnPtrVector.h @@ -31,7 +31,7 @@ namespace AK { -template +template class NonnullOwnPtrVector : public NonnullPtrVector, inline_capacity> { }; diff --git a/AK/NonnullRefPtrVector.h b/AK/NonnullRefPtrVector.h index 9becc30165..1842099be3 100644 --- a/AK/NonnullRefPtrVector.h +++ b/AK/NonnullRefPtrVector.h @@ -31,7 +31,7 @@ namespace AK { -template +template class NonnullRefPtrVector : public NonnullPtrVector, inline_capacity> { };