瀏覽代碼

* Added template to store and instantiate types

master
bergmann 6 年之前
父節點
當前提交
fbcedb286f
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      include/cppmp/core/types.h

+ 10
- 0
include/cppmp/core/types.h 查看文件

@@ -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…
取消
儲存