mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
AK: Decorate Optional<T> with [[nodisard]]
This commit is contained in:
parent
9572c95152
commit
a7a7e6245f
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
namespace AK {
|
namespace AK {
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class alignas(T) Optional {
|
class alignas(T) [[nodiscard]] Optional {
|
||||||
public:
|
public:
|
||||||
Optional() {}
|
Optional() {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue