1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>max_size</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" />
10 <link rel="up" href="db_vector.html" title="Chapter 4. Db_vector" />
11 <link rel="prev" href="stldb_vectorrend.html" title="rend" />
12 <link rel="next" href="stldb_vectorcapacity.html" title="capacity" />
15 <div xmlns="" class="navheader">
17 <p>Library Version 11.2.5.3</p>
19 <table width="100%" summary="Navigation header">
21 <th colspan="3" align="center">max_size</th>
24 <td width="20%" align="left"><a accesskey="p" href="stldb_vectorrend.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 4.
27 <td width="20%" align="right"> <a accesskey="n" href="stldb_vectorcapacity.html">Next</a></td>
32 <div class="sect1" lang="en" xml:lang="en">
33 <div class="titlepage">
36 <h2 class="title" style="clear: both"><a id="stldb_vectormax_size"></a>max_size</h2>
40 <div class="sect2" lang="en" xml:lang="en">
41 <div class="titlepage">
44 <h3 class="title"><a id="stldb_vectormax_size_details"></a>Function Details</h3>
48 <pre class="programlisting">
49 size_type max_size() const
52 <p>The returned size is not the actual limit of database. See the Berkeley DB limits to get real max size. </p>
53 <div class="sect3" lang="en" xml:lang="en">
54 <div class="titlepage">
57 <h4 class="title"><a id="idm2450840"></a>Return Value</h4>
61 <p>A meaningless huge number. </p>
64 <div class="sect2" lang="en" xml:lang="en">
65 <div class="titlepage">
68 <h3 class="title"><a id="idm2442864"></a>Group: Huge return</h3>
72 <p>These two functions return 2^30, denoting a huge number that does not overflow, because dbstl does not have to manage memory space.</p>
73 <p>But the return value is not the real limit, see the Berkeley DB database limits for the limits. </p>
75 <div class="sect2" lang="en" xml:lang="en">
76 <div class="titlepage">
79 <h3 class="title"><a id="idm2479632"></a>Class</h3>
84 <a class="link" href="db_vector.html" title="Chapter 4. Db_vector">db_vector</a>
88 <div class="navfooter">
90 <table width="100%" summary="Navigation footer">
92 <td width="40%" align="left"><a accesskey="p" href="stldb_vectorrend.html">Prev</a> </td>
93 <td width="20%" align="center">
94 <a accesskey="u" href="db_vector.html">Up</a>
96 <td width="40%" align="right"> <a accesskey="n" href="stldb_vectorcapacity.html">Next</a></td>
99 <td width="40%" align="left" valign="top">rend </td>
100 <td width="20%" align="center">
101 <a accesskey="h" href="index.html">Home</a>
103 <td width="40%" align="right" valign="top"> capacity</td>