From a5a483414a412d579594e3af1740de5e1810cbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 1 Sep 2022 22:00:22 -0700 Subject: [PATCH] Cleanup. --- include/bx/typetraits.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bx/typetraits.h b/include/bx/typetraits.h index 979dbb4..9c301f6 100644 --- a/include/bx/typetraits.h +++ b/include/bx/typetraits.h @@ -275,6 +275,11 @@ namespace bx template constexpr Ty&& forward(RemoveReferenceT&& _type); + /// Converts any type `Ty` to a reference type, making it possible to use member functions + /// in decltype expressions without the need to go through constructors. + template + AddRvalueReferenceType declVal(); + } // namespace bx #endif // BX_TYPETRAITS_H_HEADER_GUARD