blob: c66d1a7b596d00d3e59a9055d55fb6d490529ad7 (
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()...}); }
};
}
}
|