| 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"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 |
<title>length</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="DbstlElemTraits.html" title="Chapter 26. DbstlElemTraits" /> |
| 11 |
<link rel="prev" href="stlDbstlElemTraitscompare.html" title="compare" /> |
| 12 |
<link rel="next" href="stlDbstlElemTraitscopy.html" title="copy" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div xmlns="" class="navheader"> |
| 16 |
<div class="libver"> |
| 17 |
<p>Library Version 11.2.5.3</p> |
| 18 |
</div> |
| 19 |
<table width="100%" summary="Navigation header"> |
| 20 |
<tr> |
| 21 |
<th colspan="3" align="center">length</th> |
| 22 |
</tr> |
| 23 |
<tr> |
| 24 |
<td width="20%" align="left"><a accesskey="p" href="stlDbstlElemTraitscompare.html">Prev</a> </td> |
| 25 |
<th width="60%" align="center">Chapter 26. |
| 26 |
DbstlElemTraits </th> |
| 27 |
<td width="20%" align="right"> <a accesskey="n" href="stlDbstlElemTraitscopy.html">Next</a></td> |
| 28 |
</tr> |
| 29 |
</table> |
| 30 |
<hr /> |
| 31 |
</div> |
| 32 |
<div class="sect1" lang="en" xml:lang="en"> |
| 33 |
<div class="titlepage"> |
| 34 |
<div> |
| 35 |
<div> |
| 36 |
<h2 class="title" style="clear: both"><a id="stlDbstlElemTraitslength"></a>length</h2> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
<div class="sect2" lang="en" xml:lang="en"> |
| 41 |
<div class="titlepage"> |
| 42 |
<div> |
| 43 |
<div> |
| 44 |
<h3 class="title"><a id="stlDbstlElemTraitslength_details"></a>Function Details</h3> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
<pre class="programlisting"> |
| 49 |
static size_t length(const T *seq) |
| 50 |
</pre> |
| 51 |
<p>Returns the number of elements in sequence seq1. </p> |
| 52 |
<p>Note that seq1 may or may not end with a trailing '', it is completely user's responsibility for this decision, though seq[0], seq[1],... seq[length - 1] are all sequence seq's memory. </p> |
| 53 |
</div> |
| 54 |
<div class="sect2" lang="en" xml:lang="en"> |
| 55 |
<div class="titlepage"> |
| 56 |
<div> |
| 57 |
<div> |
| 58 |
<h3 class="title"><a id="idp51657472"></a>Group: Interface compatible with std::string's char_traits.</h3> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
<p>Following are char_traits funcitons, which make this class char_traits compatiable, so that it can be used in std::basic_string template, and be manipulated by the c++ stl algorithms. </p> |
| 63 |
</div> |
| 64 |
<div class="sect2" lang="en" xml:lang="en"> |
| 65 |
<div class="titlepage"> |
| 66 |
<div> |
| 67 |
<div> |
| 68 |
<h3 class="title"><a id="idp51664280"></a>Class</h3> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
<p> |
| 73 |
<a class="link" href="DbstlElemTraits.html" title="Chapter 26. DbstlElemTraits">DbstlElemTraits</a> |
| 74 |
</p> |
| 75 |
</div> |
| 76 |
</div> |
| 77 |
<div class="navfooter"> |
| 78 |
<hr /> |
| 79 |
<table width="100%" summary="Navigation footer"> |
| 80 |
<tr> |
| 81 |
<td width="40%" align="left"><a accesskey="p" href="stlDbstlElemTraitscompare.html">Prev</a> </td> |
| 82 |
<td width="20%" align="center"> |
| 83 |
<a accesskey="u" href="DbstlElemTraits.html">Up</a> |
| 84 |
</td> |
| 85 |
<td width="40%" align="right"> <a accesskey="n" href="stlDbstlElemTraitscopy.html">Next</a></td> |
| 86 |
</tr> |
| 87 |
<tr> |
| 88 |
<td width="40%" align="left" valign="top">compare </td> |
| 89 |
<td width="20%" align="center"> |
| 90 |
<a accesskey="h" href="index.html">Home</a> |
| 91 |
</td> |
| 92 |
<td width="40%" align="right" valign="top"> copy</td> |
| 93 |
</tr> |
| 94 |
</table> |
| 95 |
</div> |
| 96 |
</body> |
| 97 |
</html> |