Upcoming SlideShare
×

# Matuura cpp

320
-1

Published on

Published in: Technology, Art & Photos
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total Views
320
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
5
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;