Rails Developers Meetup 2019
Rails Developers Meetup 2019
template <auto N> auto func(auto x) { auto r = N + x; return r; } // å¼åºãä¾ assert( func<1>(0.5) == 1.5 ); ãã®è¨äºã§ã¯ãC++è¨èªä»æ§æ¹å®ã«ããå°å ¥ãããåautoãã¼ã¯ã¼ãã®å½¹å²ã説æãã¾ããåæã«ã該å½ç¨æ³ãåå¨ããªãã£ãæ代ã§ãã³ã³ãã¤ã«å¯è½ãªã½ã¼ã¹ã³ã¼ãã¸ã®æ¸æããè¡ãã¾ãã C++20æ代 C++20ã§ã¯ é¢æ°ãã©ã¡ã¼ã¿åã«autoãæ¸ãã ããã«ãªãã¾ããããã¯C++è¨èªä»æ§ã¸ã®ã³ã³ã»ãã(Concept)å°å ¥ã¨ã¨ãã«è¿½å ããããé¢æ°ãã³ãã¬ã¼ãå®ç¾©ã®ç縮è¨æ³ ã§ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}