template <typename T>
时间: 2023-12-16 21:04:07 浏览: 90
template
template <typename T>是用来声明使用模板的关键字。它表示在接下来的代码中,将使用一个名为T的模板类型。\[1\] \[2\] \[3\]
#### 引用[.reference_title]
- *1* *2* *3* [C++模板---泛型编程](https://blog.csdn.net/lwd906485829/article/details/123525361)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文