mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
36 lines
467 B
D
36 lines
467 B
D
struct RefCounted(T)
|
|
{
|
|
struct RefCountedStore
|
|
{
|
|
private struct Impl
|
|
{
|
|
T _payload;
|
|
}
|
|
|
|
private Impl* _store;
|
|
}
|
|
RefCountedStore _refCounted;
|
|
|
|
~this()
|
|
{
|
|
import core.stdc.stdlib : free;
|
|
}
|
|
}
|
|
|
|
struct GroupBy(R)
|
|
{
|
|
struct SharedInput
|
|
{
|
|
Group unused;
|
|
}
|
|
|
|
struct Group
|
|
{
|
|
private RefCounted!SharedInput _allGroups;
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
GroupBy!(int[]) g1;
|
|
}
|