22 lines
460 B
C
22 lines
460 B
C
|
#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 {}; }
|
||
|
};
|