mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +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:
parent
8249e666fc
commit
3bbf4610d2
35 changed files with 178 additions and 53 deletions
|
@ -27,7 +27,7 @@
|
|||
#include <AK/PrintfImplementation.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <stdarg.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
|
@ -96,6 +96,11 @@ String StringBuilder::to_string()
|
|||
return String((const char*)m_buffer.data(), m_length);
|
||||
}
|
||||
|
||||
String StringBuilder::build()
|
||||
{
|
||||
return to_string();
|
||||
}
|
||||
|
||||
StringView StringBuilder::string_view() const
|
||||
{
|
||||
return StringView { (const char*)m_buffer.data(), m_length };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue