Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

finish hw3 #56

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

finish hw3 #56

wants to merge 1 commit into from

Conversation

gamdwk
Copy link

@gamdwk gamdwk commented Aug 16, 2024

1.使用模板实现不同类型vector的输出/相加
2.使用decltype(T1{}+T2{})判断相加后的类型
3.variant+visit+lambda,调用上面实现的相加/输出程序。返回值需要显式表示是variant
4.需要实现variant+原始类型的函数

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

Successfully merging this pull request may close these issues.

1 participant