📄 lists.strmap.search.html
字号:
<html><!-- #BeginTemplate "/Templates/tmpl.dwt" --><head><!-- #BeginEditable "doctitle" --> <title>PTypes: lists: strmap: search</title><!-- #EndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="styles.css"></head><body bgcolor="#FFFFFF" leftmargin="40" marginwidth="40"><p><a href="../index.html"><img src="title-1.7.gif" width="213" height="34" alt="C++ Portable Types Library (PTypes) Version 1.7" border="0"></a> <hr noshade><!-- #BeginEditable "body" --> <p class="hpath"><a href="index.html">Top</a>: <a href="basic.html">Basic types</a>: <a href="lists.html">Lists</a>: <a href="lists.strmap.html">strmap</a>: Search </p><blockquote> <pre class="lang">#include <ptypes.h>unknown* get(const strmap& m, const string& str);unknown* strmap::operator[] (const string& istr);</pre></blockquote><p><span class="def">unknown* get(const strmap& m, const string& str)</span> retrieves the object associated with the given string <span class="lang">str</span> from the string map <span class="lang">s</span>. If the item does not exist in the map, the function returns <span class="lang">NULL</span>.</p><p><span class="def">unknown* strmap::operator[] (const string& istr)</span> works like <span class="lang">get()</span> described above.</p><p class="seealso">See also: <a href="lists.strmap.constructors.html">Constructors/destructors</a>, <a href="lists.strmap.manipulation.html">Manipulation</a></p><!-- #EndEditable --><hr size="1"><a href="../index.html" class="ns">PTypes home</a></body><!-- #EndTemplate --></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -