﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ASource%2FArchitecture%2FVector_Usage</id>
	<title>Dev:Source/Architecture/Vector Usage - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ASource%2FArchitecture%2FVector_Usage"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Source/Architecture/Vector_Usage&amp;action=history"/>
	<updated>2026-11-05T12:54:30Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Source/Architecture/Vector_Usage&amp;diff=47258&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Source/Architecture/Vector_Usage&amp;diff=47258&amp;oldid=prev"/>
		<updated>2018-06-28T17:47:41Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 17:47時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Source/Architecture/Vector_Usage&amp;diff=47257&amp;oldid=prev</id>
		<title>2010年4月3日 (土) 10:56にwiki&gt;Terrywallworkによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Source/Architecture/Vector_Usage&amp;diff=47257&amp;oldid=prev"/>
		<updated>2010-04-03T10:56:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The template-class std::vector can be great in simplifying and standardizing storage classes across programs, but a lot of caution needs to be taken when using it. Please follow these guidelines to make clean, efficient and bugless code:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The following code can cause exceptions to be thrown:==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&amp;amp;( vector::iterator::end() )&amp;lt;/source&amp;gt;&lt;br /&gt;
** This is illegal because you are trying to dereference a null pointer. One common error for new programmers is to assume that &amp;#039;&amp;#039;&amp;#039;end()&amp;#039;&amp;#039;&amp;#039; returns the last pointer in the sequence. However, it doesn&amp;#039;t. It returns the last pointer in the sequence plus one ( + 1 ). To dereference the last pointer of the sequence, use this instead:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&amp;amp;( (vector::iterator::end() - 1) )&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;vector::iterator::erase()&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** This is ok, except it often causes issues when used in an iteration sequence or for loop. The reason for this is because &amp;#039;&amp;#039;&amp;#039;erase()&amp;#039;&amp;#039;&amp;#039; not only clears the value at the current location, but it also deletes the pointer to the value. In an iteration sequence, the program then tries to increment a null pointer, throwing an exception. Instead, use this code:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;vector::iterator::clear()&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Terrywallwork</name></author>
		
	</entry>
</feed>