Skip to content

Conversation

@bolin12
Copy link

@bolin12 bolin12 commented Jan 5, 2022

1.修改重载ostream函数:增加模板声明。
2.两vector相加函数:使用auto推断返回值类型,实现两vector相加功能。
3.两variant相加函数:使用visit自动推断类型匹配,使用lambda表达式减少多余变量和拷贝操作。
4.增加variant和vector相加函数:实现variant和vector的运算,不同类型的vector都要有独立的函数原型。
5.重载variant输出函数:使用visit方法实现。

@bolin12 bolin12 closed this by deleting the head repository May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant