Procházet zdrojové kódy

* Added template to store and instantiate types

master
bergmann před 6 roky
rodič
revize
fbcedb286f
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. +10
    -0
      include/cppmp/core/types.h

+ 10
- 0
include/cppmp/core/types.h Zobrazit soubor

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


Načítá se…
Zrušit
Uložit