On Wednesday, 30 December 2020 at 19:51:07 UTC, Ola Fosheim Grøstad wrote:
[snip]

Sort of, in C++ it would be something like this

template<template<typename> class OuterName>
void myfunction(OuterName<int> x){ stuff(); }

[snip]

You mean like this

struct Foo(T)
{
    T x;
}

void foo(T : Foo!V, V)(T x) {
    import std.stdio: writeln;
    writeln("here");
}

void main() {
    Foo!int x;
    foo(x);
}

Reply via email to