mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
LibCore: Add a forward declaration header
This patch adds <LibCore/Forward.h> and uses it in various places to shrink the header dependency graph.
This commit is contained in:
parent
3bbf4610d2
commit
8f7333f080
35 changed files with 143 additions and 38 deletions
|
@ -30,6 +30,8 @@
|
|||
#include <AK/Platform.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
template<typename T>
|
||||
class CONSUMABLE(unknown) alignas(T) Optional {
|
||||
public:
|
||||
|
@ -161,3 +163,7 @@ private:
|
|||
char m_storage[sizeof(T)];
|
||||
bool m_has_value { false };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
using AK::Optional;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue