Browse Source

* Added template to store and instantiate types

master
bergmann 4 years ago
parent
commit
fbcedb286f
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      include/cppmp/core/types.h

+ 10
- 0
include/cppmp/core/types.h View File

@@ -11,6 +11,16 @@ namespace cppmp
template<typename...>
using void_t = void;

/**
* @brief Store a single type.
*/
template<typename X>
struct type_t
{ };

template<typename X>
constexpr decltype(auto) type_v = type_t<X> { };

/**
* @brief Simple type list.
*/


Loading…
Cancel
Save