C ++将参数包扩展为数组的元组

时间:2016-12-07 22:01:06

标签: c++ variadic-templates

我想实例化一个类,如

are equal

我知道这不是正确的C ++,但是如何实现将类的参数包模板扩展到元组中保存的数组的效果?

1 个答案:

答案 0 :(得分:11)

<MyComponent someProp="foo"><h1>heading</h1><h2>another heading</h2><p>some text</p></MyComponent>

......你没想到会如此接近,是吗:)

相关问题