fork download
  1. #include <deque>
  2. #include <memory>
  3.  
  4. int main()
  5. {
  6. std::deque<std::shared_ptr<int>> a(10);
  7. std::deque<std::shared_ptr<int>> b(a.begin(), a.begin() +2);
  8. }
  9.  
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
Standard output is empty