æè¿ãäºç´°ãªãã¨ã«æ°ä»ãç¨åº¦ã«ã¯ä½è£ãåºã¦ããã®ã ããããµã¨èªåã®ã³ã¼ããè¦ç´ãã¦ã¿ãã¨ãstatic_cast ãåãªããè¦åé¤ããããã³ã³ãã¤ã«ã¨ã©ã¼é¤ããã¨ãã¦ããããµããªç解ã®ã¾ã¾ä½¿ã£ã¦ãããã¨ã«æ°ä»ãããã©ãããç§ã¯ãstatic_cast ããªãã¨ãªãããã以å¤ã® castãã¨ãã£ããããªæè¦ã§ä½¿ã£ã¦ããããã ãããããã¨ã¯ãã¡ãããæ¨æºã§ç¨æããã¦ãã static_cast 以å¤ã® castãdynamic_cast, const_cast, reinterpret_cast ã®3ã¤ã®ãã¨ããããã® cast ã¯å½¹å²ãçµæ§ã¯ã£ãããã¦ããã®ã§ããããããå®å
¨ãªãã¦ã³ãã£ã¹ãç¨ãconst å¤ãç¨ãå¼·å¶ç½®ãæãç¨ã¨ãã¦ï¼ãã¡ããå¿
è¦ã«è¿«ããã¦ï¼è¿·ããã¨ãªã使ã£ã¦ãããã¨ããã static_cast ã ãã¯ããã以å¤ã®ç¶æ³ã§è¦åï¼ãããã¯ã³ã³ãã¤ã«ã¨ã©ã¼ï¼ãåºãæã«ä»æ¹ãªãä»
{{#tags}}- {{label}}
{{/tags}}