3 ms·
Okay, so this is like so in C++: template<template <typename> T> class C{}; Am I right, Rustaceans? :)
by _448 4y ago
Okay, so this is like so in C++:
template<template <typename> T> class C{};
Am I right, Rustaceans? :)
- Rusky 4y agoYou can do similar things with it, but GATs can't live on their own like that. Instead they are always a member of some trait, so a closer comparison would be with something like this: class C { template <class> using T = ...; };