9. HEYï¼éå ï¼ Closure Design Patterns æ¥æ¬å·¥å¦é¢å «çåå°éå¦æ ¡ 大å è¡ç å ¬åã®æ¡æãé¡ã£ã¦ã¤ã³ãã¯ãã®ããã»ãã·ã§ã³åã§åãã£ã¬ã³ã¸ãããããããããããã¨ã®çç±ã§å¤æ´ãä½åãªãããã¾ããã»ã»ã» 11. void sample1() { // é¢æ°å ã«é¢æ°ãä½æ auto add = [](int a, int b) -> int { return a + b; }; std::cout << add(10, 20) << std::endl; } ã©ã ãå¼ã®æ¦è¦ã説æãã¾ãã 12. void sample1() { // é¢æ°å ã«é¢æ°ãä½æ auto add = [](int a, int b) -> int { return a + b; }; std::cout << add(10, 20) << std::endl; } ã©ã ãå¼ã使ãã¨é¢æ°å
{{#tags}}- {{label}}
{{/tags}}