C++ã®ãã³ãã¬ã¼ãã, ã³ã³ãã¤ã«æã«èµ°ãããã°ã©ã ãè¨è¿°ããããã®è¨èªã ã¨æãã¨, ãã®è¨èªã¯ãã¥ã¼ãªã³ã°å®å
¨ãªã®ã§, å½ç¶ã©ã ãè¨ç®ã®ã¤ã³ã¿ããªã¿ãå®è£
ã§ããã, ãã®ã©ã ãè¨ç®ã®é
ã®åãæ¨è«ãããã¨ãã§ãã. ã§ããããã¨è¨ã£ã¦é¦¬é¹¿ã¿ããã«ãã£ã¦ãã¾ã£ãã¨ãã話. ã½ã¼ã¹ã³ã¼ãã¯æ«å°¾. ãã³ãã¬ã¼ãã¡ã¿ããã°ã©ãã³ã° ãã³ãã¬ã¼ããããã°ã©ãã³ã°è¨èªã ã¨æãã¨, æ§æã¯ã¨ããã, å¯ä½ç¨ããªãé¢æ°(ã£ã½ããã®)ãæ·¡ã
ã¨å®ç¾©ãã¦ãã¿ã¼ã³ããããã¦å帰å¼åºããã¦, ã¨ããæãã§ã¨ã¦ãé¢æ°åã£ã½ã. é¢æ°ã¨è¿ãå¤ ãã³ãã¬ã¼ãã¡ã¿ããã°ã©ãã³ã°ã§ã¯ãã³ãã¬ã¼ãã¯ã©ã¹ãé¢æ°ã ã¨æã£ã¦ä½¿ã. ããã¦è¿ãå¤ã¯typedefãã¦è¿ã. ãã¨ãã°ä»»æã®åS, Tãåãåã£ã¦åè
ãè¿ãé¢æ°first㯠template<typename S, typename T> struct first { t
{{#tags}}- {{label}}
{{/tags}}