Multiple ChoiceIntermediate 45s
template template variadic match
Given template<template<class...> class C> struct Wrap;, can Wrap<std::vector> be instantiated?
Options
- 1No, a template template parameter cannot accept variadic templates
- 2No, because vector has an allocator parameter only
- 3Only in C++23
- 4Yes, because a variadic template matches template<class...> class
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.