1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:17:35 +00:00

AK: Add a forward declaration header

You can now #include <AK/Forward.h> to get most of the AK types as
forward declarations.

Header dependency explosion is one of the main contributors to compile
times at the moment, so this is a step towards smaller include graphs.
This commit is contained in:
Andreas Kling 2020-02-14 21:41:10 +01:00
parent 8249e666fc
commit 3bbf4610d2
35 changed files with 178 additions and 53 deletions

View file

@ -27,6 +27,7 @@
#pragma once
#include <AK/Assertions.h>
#include <AK/Forward.h>
#include <AK/StdLibExtras.h>
#include <AK/Traits.h>
#include <AK/kmalloc.h>
@ -44,9 +45,6 @@
namespace AK {
template<typename T, int inline_capacity>
class Vector;
template<typename VectorType, typename ElementType>
class VectorIterator {
public:
@ -132,7 +130,7 @@ public:
}
};
template<typename T, int inline_capacity = 0>
template<typename T, int inline_capacity>
class Vector {
public:
Vector()