Skip to content

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