types: add type_tag helper struct

This commit is contained in:
Danny Robson 2015-04-20 17:46:14 +10:00
parent f9e8ea78bf
commit 29af32106b

View File

@ -48,4 +48,16 @@ first (T a, Args&& ...b) {
return first (std::forward<Args>(b)...); return first (std::forward<Args>(b)...);
} }
namespace util {
///------------------------------------------------------------------------
/// represents a type as a POD struct (but is statically recoverable via
/// the 'type' member).
template <typename T>
struct type_tag
{
typedef T type;
};
}
#endif #endif