èªæ¸ä¼ã§ãC++ã¯å¾ªç°åç §ã®è¨è¿°ãå°é£ãªã¨ãããã»ã»ã»ãã¨ãã話é¡ããã£ããã©ããã®å ´ã¯Pimplã¤ãã£ãªã ã¨ããè¨èã®ã¿ãç´¹ä»ãã¦ãããã ã¨ãããã¨ã§è£è¶³ãã ã¾ããåé¡ã¨ãªãã³ã¼ãã¯ãããªæãã // hoge.h #pragma once #include "piyo.h" class hoge { piyo p; }; // piyo.h #pragma once #include "hoge.h" class piyo { hoge h; }; ãã®ã³ã¼ãã¯ã©ãããã°ã£ã¦ãã³ã³ãã¤ã«ã§ããªãã ãªããªããhogeãã³ã³ãã¤ã«ããçºã«ã¯piyoãå¿ è¦ã§ãpiyoãã³ã³ãã¤ã«ããçºã«ã¯hogeãå¿ è¦ã ããã ããããPimplã¤ãã£ãªã ã使ç¨ãã¦åé¿ããã¨ãããªæãã«ãªãã // hoge.h #pragma once class hoge { // hogeã¯ã©ã¹ã®private
{{#tags}}- {{label}}
{{/tags}}