mirror of
https://github.com/yuzu-mirror/dynarmic.git
synced 2026-04-05 14:25:36 +00:00
mp: Implement metaprogramming library
This commit is contained in:
parent
4ab029c114
commit
7360a2579b
15 changed files with 412 additions and 0 deletions
27
tests/mp.cpp
Normal file
27
tests/mp.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/* This file is part of the dynarmic project.
|
||||
* Copyright (c) 2018 MerryMage
|
||||
* This software may be used and distributed according to the terms of the GNU
|
||||
* General Public License version 2 or any later version.
|
||||
*/
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#include "common/mp/cartesian_product.h"
|
||||
|
||||
using namespace Dynarmic::Common::mp;
|
||||
|
||||
static_assert(
|
||||
std::is_same_v<
|
||||
cartesian_product<list<int, bool>, list<double, float>, list<char, unsigned>>,
|
||||
list<
|
||||
list<int, double, char>,
|
||||
list<int, double, unsigned>,
|
||||
list<int, float, char>,
|
||||
list<int, float, unsigned>,
|
||||
list<bool, double, char>,
|
||||
list<bool, double, unsigned>,
|
||||
list<bool, float, char>,
|
||||
list<bool, float, unsigned>
|
||||
>
|
||||
>
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue