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