C++0x ã§ã¯ decltype ã«ãã£ã¦ãå¼ã®åããå¾ããã¨ãåºæ¥ã¾ããã ãã³ãã¬ã¼ãã¡ã¿ããã°ã©ãã³ã°ãªããã§ãããåã®å¤æ°ã decltype å ã§ä½¿ããããã£ã¦æã«ã¯ã ãã®å¤æ°ãã©ããã£ã¦ä½ãããåé¡ã«ãªãã¾ãã ä¾ãã° T1 㨠T2 ãä¹ç®ããçµæã®åã欲ããã¨ãããå ´åã æ®éã®åãªã T1 㨠T2 ãåãå T ãªã T ã«ãªãã§ããããã ãããã¯ãã«ã¨ãè¡åã ã£ãããã¡ã§ãã®ã§ã decltype ã使ã£ã¦åå¾ãããã ã§ãã decltype( T1 * T2 ) ã¨ã¯æ¸ããªãããããã©ããããã ã¾ãèããããã®ã decltype( T1() * T2() ) ã§ããã ãã㯠T1 㨠T2 ã«å¯¾ã㦠default constructible ãè¦æ±ãã¦ãã¾ãã¾ããã T1 ã T2 ãåç §åã®å ´åã«ã¯ãã¡ãã¡ã§ãã ããã T1 t1(); T2 t
{{#tags}}- {{label}}
{{/tags}}