blob: 921d1d364cc20755eda4879b48065c909e2866c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "common.hpp"
#include "funcs.hpp"
#include "../level-1/common.hpp"
#include <functional>
namespace intellect {
namespace level2 {
template <typename ref>
struct baseref : public level1::baseref<ref>
{
using level1::template baseref<ref>::baseref;
// thread-local context
static ref context() { return level2::context(); }
template <typename... Refs>
ref operator()(Refs... args) { return level2::dohabit(self, {args.ptr()...}); }
};
}
}
|