"docs/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "4ea391163f2318bb76b833aa0f40a306301e65db"
Commit ee391f22 authored by Paul's avatar Paul
Browse files

Add lift class macro

parent 9b3e4576
...@@ -35,6 +35,15 @@ ...@@ -35,6 +35,15 @@
[](auto&&... private_lisft_xs) MIGRAPHX_RETURNS( \ [](auto&&... private_lisft_xs) MIGRAPHX_RETURNS( \
(__VA_ARGS__)(static_cast<decltype(private_lisft_xs)>(private_lisft_xs)...)) (__VA_ARGS__)(static_cast<decltype(private_lisft_xs)>(private_lisft_xs)...))
// NOLINTNEXTLINE
#define MIGRAPHX_LIFT_CLASS(name, ...) \
struct name \
{ \
template <class... PrivateLiftTs> \
constexpr auto operator()(PrivateLiftTs&&... private_lisft_xs) const MIGRAPHX_RETURNS( \
(__VA_ARGS__)(static_cast<decltype(private_lisft_xs)>(private_lisft_xs)...)) \
}
namespace migraphx { namespace migraphx {
struct swallow struct swallow
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment