diff --git a/AK/TypeCasts.h b/AK/TypeCasts.h index 171d898d16a..44a167b8458 100644 --- a/AK/TypeCasts.h +++ b/AK/TypeCasts.h @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include @@ -27,6 +28,12 @@ ALWAYS_INLINE bool is(InputType* input) return input && is(*input); } +template +ALWAYS_INLINE bool is(NonnullRefPtr const& input) +{ + return is(*input); +} + template ALWAYS_INLINE CopyConst* verify_cast(InputType* input) {