Skip to content

hw03 #28

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

hw03 #28

wants to merge 1 commit into from

Conversation

xu-kq
Copy link

@xu-kq xu-kq commented Jan 11, 2022

  1. 修补定义<<补充模板重载声明
  2. 修补定义用auto自动推断返回类型,其中T0 用decltype推断
  3. 用visit和lambda表达式实现泛型容器加法
  4. 考虑variant与vector,或vector与variant的加法,重载运算符。这里操作比较丑陋,缺少模板编程的优雅,待会儿去学习下同学们的写法。
  5. 打印同样基于visit以及已经重载过得vector ostream.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant