assumeThreadLocal

ref
T
assumeThreadLocal
(
T
)
(
auto ref shared(T) obj
)

Examples

class Test
{
    int hoge()
    {
        return 0;
    }
}

auto raw = new shared(Test);
Test local1 = assumeThreadLocal(raw);
Test local2 = assumeThreadLocal(new shared(Test));

Meta