STL ã®ãã¤ã³ãã¨ãªãã¡ã¬ã³ã¹ã¸ã®ãªãã¡ã¬ã³ã¹åé¡ STL ã«å«ã¾ãã bind1st 㨠bind2nd 㯠for_each ã find ãªã©ã®é¢æ°ã¨çµã¿åããã¦ä½¿ãã¨ä¾¿å©ã§ããããããªããããªãã¡ã¬ã³ã¹ (åç §) ãå¼æ°ã«åãé¢æ°ã®å¼æ°ããã¤ã³ããããã¨ã¯ã§ããªãã®ã§æ³¨æãå¿ è¦ã§ãã 注æãå¿ è¦ã§ãã¨è¨ãã¤ã¤ãèªåããã®åé¡ãç¥ããã«ã¯ã¾ãã¾ããã次ã®ãããªã³ã¼ãã§åé¡ã¯èµ·ãã¾ãã #include <algorithm> #include <functional> #include <iostream> #include <string> #include <vector> using namespace std; void print(const string& s1, const string& s2) { cout << s1 << ": " << s2 << endl;
{{#tags}}- {{label}}
{{/tags}}