mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-05 03:23:36 +00:00
27 lines
726 B
C++
27 lines
726 B
C++
/* This file is part of the dynarmic project.
|
|
* Copyright (c) 2016 MerryMage
|
|
* This software may be used and distributed according to the terms of the GNU
|
|
* General Public License version 2 or any later version.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
|
|
namespace Dynarmic {
|
|
namespace mp {
|
|
|
|
template<typename MemFnT, MemFnT fn>
|
|
struct MemFnInfo;
|
|
|
|
/// This struct provides information about a member function pointer.
|
|
template<typename T, typename ReturnT, typename ...Args, ReturnT (T::*fn)(Args...)>
|
|
struct MemFnInfo<ReturnT (T::*)(Args...), fn> {
|
|
using class_type = T;
|
|
using return_type = ReturnT;
|
|
static constexpr size_t args_count = sizeof...(Args);
|
|
};
|
|
|
|
} // namespace mp
|
|
} // namespace Dynarmic
|