<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ta.in.th/index.php?action=history&amp;feed=atom&amp;title=STL_Containers</id>
	<title>STL Containers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ta.in.th/index.php?action=history&amp;feed=atom&amp;title=STL_Containers"/>
	<link rel="alternate" type="text/html" href="https://wiki.ta.in.th/index.php?title=STL_Containers&amp;action=history"/>
	<updated>2026-05-02T17:00:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0-alpha</generator>
	<entry>
		<id>https://wiki.ta.in.th/index.php?title=STL_Containers&amp;diff=105&amp;oldid=prev</id>
		<title>Tata: Created page with &quot;อยากใช้ STL เป็นเร็วๆ T^T ใครใช้เป็นก็ช่วยๆกันใส่หน่อยละกัน (อ้างอ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ta.in.th/index.php?title=STL_Containers&amp;diff=105&amp;oldid=prev"/>
		<updated>2019-03-07T17:18:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;อยากใช้ STL เป็นเร็วๆ T^T ใครใช้เป็นก็ช่วยๆกันใส่หน่อยละกัน (อ้างอ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;อยากใช้ STL เป็นเร็วๆ T^T&lt;br /&gt;
ใครใช้เป็นก็ช่วยๆกันใส่หน่อยละกัน&lt;br /&gt;
(อ้างอิงมาจาก C++ Reference)&lt;br /&gt;
&lt;br /&gt;
== STL Containers ==&lt;br /&gt;
=== Sequence containers ===&lt;br /&gt;
==== vector ====&lt;br /&gt;
==== deque (Double ended queue) ====&lt;br /&gt;
==== list ====&lt;br /&gt;
&lt;br /&gt;
=== Container adaptors ===&lt;br /&gt;
==== stack ====&lt;br /&gt;
==== queue ====&lt;br /&gt;
==== priority_queue ====&lt;br /&gt;
&lt;br /&gt;
=== Associative containers ===&lt;br /&gt;
==== set ====&lt;br /&gt;
==== multiset ====&lt;br /&gt;
==== map ====&lt;br /&gt;
&lt;br /&gt;
* สามารถใช้ map ทำเป็น 2D-Array (อาเรย์ 2 มิติ) ได้ด้วยคำสั่ง&lt;br /&gt;
 std::map&amp;lt;int, std::map&amp;lt;int, int&amp;gt; &amp;gt; mymap;&lt;br /&gt;
* For example:&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt;map&amp;gt;&lt;br /&gt;
 #include &amp;lt;iostream&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 int main() &lt;br /&gt;
 {&lt;br /&gt;
     std::map&amp;lt;int, std::map&amp;lt;int, int&amp;gt; &amp;gt; mymap;&lt;br /&gt;
 &lt;br /&gt;
     mymap[9][2] = 7;&lt;br /&gt;
     std::cout &amp;lt;&amp;lt; mymap[9][2] &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
 &lt;br /&gt;
     if (mymap.find(9) != mymap.end() &amp;amp;&amp;amp; mymap[9].find(2) != mymap[9].end()) {&lt;br /&gt;
         std::cout &amp;lt;&amp;lt; &amp;quot;My map contains a value for [9][2]&amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
     } else {&lt;br /&gt;
         std::cout &amp;lt;&amp;lt; &amp;quot;My map does not contain a value for [9][2]&amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
     } &lt;br /&gt;
 &lt;br /&gt;
     return 0;&lt;br /&gt;
 }&lt;br /&gt;
 //credit: http://stackoverflow.com/questions/3393243/how-to-use-stlmap-as-two-dimension-array&lt;br /&gt;
&lt;br /&gt;
==== multimap ====&lt;br /&gt;
==== bitset ====&lt;/div&gt;</summary>
		<author><name>Tata</name></author>
		
	</entry>
</feed>