ãããããªãã¡ãããããããªã話ãªãã§ããã©ãC++ã§ã¤ãã¬ã¼ã¿ã®ã«ã¼ããæ¸ãã¨ãã«ãã«ã¼ãã®åæåã¨çµäºæ¡ä»¶ãæ¸ãè¡ãé·ããªããã¡ãªã®ã§ãæ¹è¡ã®ã¹ã¿ã¤ã«ãã©ããããããæ©ã¿ã¾ãã â»ã«ã¼ãã®ä¸ã§vectorã«å¤åãªãå ´åãçµäºæ¡ä»¶ãæ¯åend()ãå¼ã³åºãã¦æ¤æ»ããã®ã¯ç¡é§ãªé¢æ°å¼ã³åºãã«ãªã£ã¦ãã¾ãå¯è½æ§ãããã®ã§ãå¤æ°ã«å ¥ãã¦ãã¾ããâC++ Coding Standards 9é ãææå°æ©ã«æä¸é©åãã¦ãã¾ããªãã æ¹è¡ããªã for(std::vector<MyClass*>::iterator itr = m_elements.begin(), end = m_elements.end(); itr != end; ++itr){ // ã«ã¼ãã®ä¸èº« } è¡ãé·ããªã£ã¦èªã¿ã¥ãã 1ã¤ã®è¡ã«1ã¤ã®statement for(std::vector<MyClass*>::iter
{{#tags}}- {{label}}
{{/tags}}