• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Matuura cpp
 

Matuura cpp

on

  • 421 views

 

Statistics

Views

Total Views
421
Views on SlideShare
421
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \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 Matuura cpp Presentation Transcript

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