TL;DR; std::vectorã®insert()ãerase()ã¯ã¤ãã¬ã¼ã¿ãè¿ãããé£ç¶ãã¦ãã®vectorã«æä½ããå ´åãã®ã¤ãã¬ã¼ã¿ãæ»ãå¤ã§åãåããªãã®ã¯ãã°ã®æ¸©åºã«ãªããã¡ãªã®ã§æ°ãã¤ãã¾ãããã åãã« std::vectorã¯é©åã«ä½¿ãã°é åã®ãµã¤ãºãããªãµã¤ãºãããæèã®å¤ã«è¿½ããããã®ã§å¤§å¤ä¾¿å©ã§ãã vector.insert(iter, value) ã使ãã¨ãiterãæãå ´æã«æ°ãã«valueãæ¿å ¥ãããã®å¾ãã®å¤ãããæãã«ãããã¦ããã¾ãã vector.erase(iter) ã使ã㨠iterãæãã¦ããå ´æã®å¤ãæ¶å»ããé åã®ãã®å¾ãã®å¤ããããã¦ééãåãã¦ããã¾ãã ã©ã£ã¡ãæåã§å®è£ ããã¨ä¸ããªããã¹ãããã¡ãªã®ã§vectorã®ã¡ã½ãããé ¼ãã¾ãããã insertãeraseããæä½ãããç¬éã«ä½¿ç¨ããiteratorãæãå ´æã¯ä¸å®ã«ãª
{{#tags}}- {{label}}
{{/tags}}