4
A
回答
5
template <typename... Args>
using my_tuple = std::tuple<Args...>;
4
你可以做到這一點與template alias
template< class... tupleArgs > using newname = std::tuple<tupleArgs...>;
int main()
{
newname<int, std::string, double> t1;
return 0;
}
相關問題
- 1. Be-friend'ing std :: tuple
- 2. 複製std :: tuple
- 3. std :: tuple是如何實現的?
- 4. 如何創建Bash別名?
- 5. 創建別名
- 6. 如何在SQL中創建視圖爲列名創建別名?
- 7. C++ 11如何實現`std :: string ToString(std :: tuple <Args...>&t)`?
- 8. 如何將Std :: mutex與其他類放在std :: tuple中?
- 9. C++ - 爲std :: array迭代器創建一個std ::數組的別名
- 10. 正確使用std :: tuple?
- 11. 從std :: tuple <some_types ...>
- 12. 如何在Apache Tomcat中創建「別名」?
- 13. 如何爲mercurial用戶創建別名?
- 14. 如何創建魚類殼別名
- 15. 如何用參數創建bash別名?
- 16. 如何創建類型別名
- 17. 如何用args創建shell別名?
- 18. 如何爲長路徑創建「別名」?
- 19. 在C#中如何創建別名
- 20. nginx:如何創建別名url路由?
- 21. CMake:如何爲目標創建別名?
- 22. 如何在Windows上創建IP別名
- 23. 如何創建一個別名正確
- 24. 如何在MySQL中創建表別名
- 25. 如何創建一個qmgr別名
- 26. 如何在nodejs中創建ip別名
- 27. C#:如何爲類創建「別名」
- 28. Dosbox創建別名
- 29. 別名的std :: initializer_list在鐺
- 30. 由std :: tuple存儲的垃圾值