alsk/tests/executor/common.h

22 lines
460 B
C
Raw Normal View History

2021-05-10 16:14:13 +00:00
#include <alsk/alsk.h>
using namespace alsk::arg;
using alsk::edsl::link;
template<typename> struct GetExecutor;
template<template<typename> class TT, typename Arg>
struct GetExecutor<TT<Arg>> {
template<typename T>
using Template = TT<T>;
};
struct CallCounterV {
static std::atomic_ullong count;
int operator()() { ++count; return {}; }
};
struct CallCounterII {
static std::atomic_ullong count;
int operator()(int, int) { ++count; return {}; }
};