소스 검색

* 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.
*/


불러오는 중...
취소
저장