Matuura cpp

320
-1

Published on

Published in: Technology, Art & Photos
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
320
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Matuura cpp

    1. 1. template<typename Iterator, typename Tp>Iterator find(Iterator first, Iterator last, const Tp& val){ while (first != last && !(*first == val)) ++first; return first;}
    2. 2. template<typename Iterator, typename Tp>Iterator find(Iterator first, Iterator last, const Tp& val){ while (first != last && !(*first == val)) ++first; return first;}
    3. 3. struct X{ X(std::vector<int>&& v){...}};
    4. 4. struct X{ X(std::vector<int>&& v){...}};
    5. 5. vector<int> v;for(int value : v) { cout << value << endl;}
    6. 6. std::vector<int> v;std::vector<int>::iterator it = v.begin();std::vector<int> v;auto it = v.begin();
    7. 7. vector<int> v;find_if(v.begin(), v.end(), [](int x) -> bool { return x % 2 == 0; }); auto f = [](){};
    8. 8. int* p = nullptr;

    ×