Skip to content

Conversation

@woAIxuexiSR
Copy link

  1. 为打印vector的函数添加 template<class T>
  2. vector的加法函数,使用 using T0 = decltype(T1{} + T2{}) 获取结果的类型
  3. 添加 std::variant<std::vector<int>, std::vector<double> >std::vector<double> 相加的函数
  4. 使用 std::visit 实现自动匹配容器的加法和打印
@woAIxuexiSR woAIxuexiSR closed this by deleting the head repository Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant