diff --git a/types.hpp b/types.hpp index bbe676f9..6efe638c 100644 --- a/types.hpp +++ b/types.hpp @@ -161,4 +161,20 @@ namespace cruft { //------------------------------------------------------------------------- template constexpr auto has_native_v = has_native::value; + + + /////////////////////////////////////////////////////////////////////////// + /// Unconditionally ignore the first argument, and store the second as `type`. + /// + /// This aids converting parameter packs types. eg, converting all types + /// to strings by using an expression of the form: + /// `convert_t...` + template + struct convert { + using type = ResultT; + }; + + + template + using convert_t = typename convert::type; }