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