Предположим, у нас есть шаблон класса обслуживания:
Код: Выделить всё
template
class SomeAbstractFileService {
public:
void init() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79019295/loop-over-pairs-from-2-constexpr-arrays-to-instantiate-and-run-template-function[/url]