diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-14 21:41:10 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-14 23:31:18 +0100 |
commit | 3bbf4610d24c0dd8f8f1d0b962259c1f7e067a2d (patch) | |
tree | 21130d15a28031b759ef8c73751c07e8881240ea /AK/StringView.h | |
parent | 8249e666fcaf6a4c1f4856443f40c67f0f3704c2 (diff) | |
download | serenity-3bbf4610d24c0dd8f8f1d0b962259c1f7e067a2d.zip |
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.
Diffstat (limited to 'AK/StringView.h')
-rw-r--r-- | AK/StringView.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/AK/StringView.h b/AK/StringView.h index 6eab64ceec..4bf12a5364 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -26,14 +26,11 @@ #pragma once -#include <AK/Vector.h> +#include <AK/Forward.h> +#include <AK/StdLibExtras.h> namespace AK { -class ByteBuffer; -class String; -class StringImpl; - class StringView { public: StringView() {} |