<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>Chapter9. Containers</title><metaname="generator"content="DocBook XSL Stylesheets Vsnapshot"/><metaname="keywords"content="ISO C++, library"/><metaname="keywords"content="ISO C++, runtime, library"/><linkrel="home"href="../index.html"title="The GNU C++ Library"/><linkrel="up"href="std_contents.html"title="PartII. Standard Contents"/><linkrel="prev"href="facets.html"title="Facets"/><linkrel="next"href="associative.html"title="Associative"/></head><body><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Chapter9.
</h2></div></div></div><divclass="toc"><p><strong>Table of Contents</strong></p><dlclass="toc"><dt><spanclass="section"><ahref="containers.html#std.containers.sequences">Sequences</a></span></dt><dd><dl><dt><spanclass="section"><ahref="containers.html#containers.sequences.list">list</a></span></dt><dd><dl><dt><spanclass="section"><ahref="containers.html#sequences.list.size">list::size() is O(n)</a></span></dt></dl></dd></dl></dd><dt><spanclass="section"><ahref="associative.html">Associative</a></span></dt><dd><dl><dt><spanclass="section"><ahref="associative.html#containers.associative.insert_hints">Insertion Hints</a></span></dt><dt><spanclass="section"><ahref="associative.html#containers.associative.bitset">bitset</a></span></dt><dd><dl><dt><spanclass="section"><ahref="associative.html#associative.bitset.size_variable">Size Variable</a></span></dt><dt><spanclass="section"><ahref="associative.html#associative.bitset.type_string">Type String</a></span></dt></dl></dd></dl></dd><dt><spanclass="section"><ahref="unordered_associative.html">Unordered Associative</a></span></dt><dd><dl><dt><spanclass="section"><ahref="unordered_associative.html#containers.unordered.insert_hints">Insertion Hints</a></span></dt><dt><spanclass="section"><ahref="unordered_associative.html#containers.unordered.hash">Hash Code</a></span></dt><dd><dl><dt><spanclass="section"><ahref="unordered_associative.html#containers.unordered.cache">Hash Code Caching Policy</a></span></dt></dl></dd></dl></dd><dt><spanclass="section"><ahref="containers_and_c.html">Interacting with C</a></span></dt><dd><dl><dt><spanclass="section"><ahref="containers_and_c.html#containers.c.vs_array">Containers vs. Arrays</a></span></dt></dl></dd></dl></div><divclass="section"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aid="std.containers.sequences"></a>Sequences</h2></div></div></div><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aid="containers.sequences.list"></a>list</h3></div></div></div><divclass="section"><divclass="titlepage"><div><div><h4class="title"><aid="sequences.list.size"></a>list::size() is O(n)</h4></div></div></div><p>
Yes it is, at least using the <aclass="xref"href="using_dual_abi.html"title="Dual ABI">Dual ABI</a>, and that's okay. This is a decision that we preserved