Developer FAQs

Developer Questions And Answers

×
MENU
  • Languages
  • Web
  • Database
HomestdinitializerlistPosts
Pack expansion of variadic list of types into initializer list of complex types - is it legal? Languages

Pack expansion of variadic list of types into initializer list of complex types – is it legal?

I would like to "materialize" a variadic types list into an initializer_list of related values. For example, having an std::tuple of several std::integral_constant<T, x> get an std::initializer_list<T>{...}. In general case, I would like to get initializer_list of some complex type, like std::string.
09月11日 发表评论
Read More
Copyright ©  Developerfaqs  All Rights Reserved.

登录 找回密码

输入用户名或电子邮箱地址,您会收到一封新密码链接的电子邮件。

  • 文章目录
  • icon