Medium
std::vector as a single-parameter template template argument
Compiled as C++20, what happens when this is compiled?
main.cpp
#include <iostream>
#include <vector>
template <template <typename> class TT>
struct Trait {
static void show() { std::cout << "matched\n"; }
};
int main() {
Trait<std::vector>::show(); // std::vector has two template params (second defaulted)
}35 of 117 in C++