ããã¯ï¼C++ããã°ã©ãã§ããããè¦åãã10ã®è³ªå - Life like a clown ã® ã*_cast ããã³Cã¹ã¿ã¤ã«ã®ãã£ã¹ãããããã«ã¤ãã¦æ¦è¦ã説æãããã¨è¨ã質åã«å¯¾ããåççãªè¨äºã§ãï¼ãã®è¾ºããããã°ãããã ã®èª¬æçãªãã®ã«ãªãã®ã§ãã£ã¨æ¸ãã¦ããã¾ãï¼ C++ ã®ãã£ã¹ãã«é¢ãã¦ã¯ï¼http://www.s34.co.jp/cpptechdoc/article/newcast/ ãã³ã³ãã¯ãã«çºã¾ã£ã¦ãã¾ãï¼ static_castã¯exprã®åããtypeã¸ã®æé»ã®åå¤æããããã¯typeããexprã¸ã®æé»ã®åå¤æãåå¨ããå ´åã«ã ããã£ã¹ããã¾ãããã£ã¹ãä¸å¯è½ã§ããã°ã³ã³ãã¤ã«ã¨ã©ã¼ã¨ãªãã¾ãã reinterpret_castã¯type(expr)ã許ããããªããexprãtypeã«åã«ãã£ã¹ããã¾ããreinterpret_castã¯åãªãåå¤æ´ã§ãã
{{#tags}}- {{label}}
{{/tags}}