Files
ladybird/AK
Jelle Raaijmakers e123d48043 AK: Add SentinelOptional
We specialize `Optional<T>` for value types that inherently support some
kind of "empty" value or whose value range allow for a unlikely to be
useful sentinel value that can mean "empty", instead of the boolean flag
a regular Optional<T> needs to store. Because of padding, this often
means saving 4 to 8 bytes per instance.

By extending the new `SentinelOptional<T, Traits>`, these
specializations are significantly simplified to just having to define
what the sentinel value is, and how to identify a sentinel value.
2026-03-20 12:03:36 +01:00
..
2025-11-20 15:44:25 +01:00
2024-12-04 16:45:58 +00:00
2024-11-20 21:13:23 +01:00
2026-03-20 12:03:36 +01:00
2026-02-17 12:38:51 +00:00
2026-01-29 10:10:12 +01:00
2026-02-17 12:38:51 +00:00
2024-11-19 22:07:01 -07:00
2024-11-10 14:48:20 -07:00
2026-03-20 12:03:36 +01:00
2026-02-21 19:27:35 +01:00
2024-12-28 05:39:32 -08:00
2025-08-23 16:04:36 -06:00
2026-03-20 12:03:36 +01:00
2026-02-18 08:02:45 -05:00
2024-02-11 18:53:00 +01:00
2026-03-20 12:03:36 +01:00
2025-08-26 15:20:33 +02:00
2026-02-17 10:48:09 -05:00