2020-01-18 11:38:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 11:38:21 +03:00
|
|
|
*/
|
|
|
|
|
2019-06-27 13:04:27 +03:00
|
|
|
#pragma once
|
|
|
|
|
2019-07-25 12:00:26 +03:00
|
|
|
#include <AK/NonnullPtrVector.h>
|
2019-06-27 13:04:27 +03:00
|
|
|
#include <AK/NonnullRefPtr.h>
|
|
|
|
|
|
|
|
namespace AK {
|
|
|
|
|
2021-02-20 19:39:58 +03:00
|
|
|
template<typename T, size_t inline_capacity>
|
2020-09-18 10:49:51 +03:00
|
|
|
class NonnullRefPtrVector : public NonnullPtrVector<NonnullRefPtr<T>, inline_capacity> {
|
2021-06-11 00:02:48 +03:00
|
|
|
using NonnullPtrVector<NonnullRefPtr<T>, inline_capacity>::NonnullPtrVector;
|
2019-06-27 13:04:27 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
using AK::NonnullRefPtrVector;
|