{"id":64221,"date":"2026-01-23T03:32:18","date_gmt":"2026-01-22T19:32:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/64221.html"},"modified":"2026-01-23T03:32:18","modified_gmt":"2026-01-22T19:32:18","slug":"c%e5%85%b3%e8%81%94%e5%ae%b9%e5%99%a8%e8%af%a6%e8%a7%a3%ef%bc%9aset-map%e9%ab%98%e6%95%88%e6%93%8d%e4%bd%9c%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/64221.html","title":{"rendered":"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357"},"content":{"rendered":"<p>\u6838\u5fc3\u6982\u5ff5&#xff1a; \u8fd9\u4e9b\u5bb9\u5668\u90fd\u662f\u5173\u8054\u5bb9\u5668\u3002\u5b83\u4eec\u7684\u7279\u70b9\u662f\u5176\u4e2d\u7684\u5143\u7d20\u662f\u6309\u7167\u7279\u5b9a\u7684\u6392\u5e8f\u51c6\u5219&#xff08;\u901a\u5e38\u662f &lt; \u8fd0\u7b97\u7b26\u6216\u8005\u81ea\u5b9a\u4e49\u7684\u6bd4\u8f83\u51fd\u6570&#xff09;\u8fdb\u884c\u6392\u5e8f\u7684\u3002\u8fd9\u79cd\u6392\u5e8f\u4f7f\u5f97\u67e5\u627e\u3001\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u975e\u5e38\u9ad8\u6548&#xff0c;\u65f6\u95f4\u590d\u6742\u5ea6\u901a\u5e38\u4e3a $O(\\\\log n)$\u3002\u5b83\u4eec\u7684\u5e95\u5c42\u5b9e\u73b0\u901a\u5e38\u662f\u7ea2\u9ed1\u6811\u3002<\/p>\n<hr \/>\n<h3>1. set \u548c multiset<\/h3>\n<ul>\n<li>\n<p>\u5b58\u50a8\u5185\u5bb9&#xff1a; \u5b58\u50a8\u552f\u4e00\u7684\u952e (key)\u3002set \u4e2d\u7684\u952e\u662f\u552f\u4e00\u7684&#xff0c;multiset \u4e2d\u7684\u952e\u53ef\u4ee5\u91cd\u590d\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u4e49&#xff1a;<\/p>\n<p> #include &lt;set&gt;<br \/>\nstd::set&lt;Key, Compare &#061; std::less&lt;Key&gt;, Allocator &#061; std::allocator&lt;Key&gt;&gt; set_name;<br \/>\nstd::multiset&lt;Key, Compare &#061; std::less&lt;Key&gt;, Allocator &#061; std::allocator&lt;Key&gt;&gt; multiset_name;<\/p>\n<ul>\n<li>Key: \u5bb9\u5668\u4e2d\u5b58\u50a8\u7684\u5143\u7d20\u7c7b\u578b\u3002\u8fd9\u4e2a\u7c7b\u578b\u5fc5\u987b\u652f\u6301\u6bd4\u8f83\u64cd\u4f5c&#xff08;\u901a\u8fc7 &lt; \u8fd0\u7b97\u7b26\u6216\u81ea\u5b9a\u4e49\u7684 Compare&#xff09;\u3002<\/li>\n<li>Compare: \u6bd4\u8f83\u51fd\u6570\u5bf9\u8c61\u7684\u7c7b\u578b&#xff0c;\u7528\u4e8e\u5b9a\u4e49\u6392\u5e8f\u89c4\u5219\u3002\u9ed8\u8ba4\u662f std::less&lt;Key&gt;&#xff0c;\u5373\u5347\u5e8f\u6392\u5217\u3002\u53ef\u4ee5\u81ea\u5b9a\u4e49&#xff0c;\u4f8b\u5982 std::greater&lt;Key&gt; \u5b9e\u73b0\u964d\u5e8f\u3002<\/li>\n<li>Allocator: \u5185\u5b58\u5206\u914d\u5668\u7c7b\u578b&#xff0c;\u901a\u5e38\u4f7f\u7528\u9ed8\u8ba4\u503c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4e3b\u8981\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>\u6392\u5e8f&#xff1a; \u5143\u7d20\u59cb\u7ec8\u6309 Compare \u5b9a\u4e49\u7684\u89c4\u5219\u4fdd\u6301\u6709\u5e8f\u3002<\/li>\n<li>\u552f\u4e00\u6027 (\u4ec5 set): set \u4e2d\u4e0d\u5141\u8bb8\u4e24\u4e2a\u5143\u7d20\u5177\u6709\u76f8\u540c\u7684\u503c&#xff08;\u6839\u636e Compare \u5224\u65ad\u76f8\u7b49&#xff09;\u3002<\/li>\n<li>\u952e\u5373\u503c&#xff1a; \u5728 set \u548c multiset \u4e2d&#xff0c;key \u5c31\u662f\u5b58\u50a8\u7684\u503c\u672c\u8eab (value_type \u5c31\u662f Key)\u3002<\/li>\n<li>\u8fed\u4ee3\u5668&#xff1a; \u63d0\u4f9b\u53cc\u5411\u8fed\u4ee3\u5668 (iterator, const_iterator)\u3002\u8fed\u4ee3\u5668\u6309\u6392\u5e8f\u987a\u5e8f\u904d\u5386\u5143\u7d20\u3002\u4fee\u6539\u5143\u7d20\u7684\u503c&#xff08;\u901a\u8fc7\u8fed\u4ee3\u5668&#xff09;\u53ef\u80fd\u7834\u574f\u5bb9\u5668\u7684\u6392\u5e8f&#xff0c;\u56e0\u6b64\u662f\u4e0d\u5141\u8bb8\u7684\u3002 \u53ea\u80fd\u63d2\u5165\u65b0\u5143\u7d20\u6216\u5220\u9664\u73b0\u6709\u5143\u7d20\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5173\u952e\u6210\u5458\u51fd\u6570&#xff1a;<\/p>\n<ul>\n<li>\u63d2\u5165: std::pair&lt;iterator, bool&gt; insert(const Key&amp; key); \/\/ set: \u63d2\u5165\u6210\u529f\u8fd4\u56de {iterator, true}, \u5931\u8d25(\u91cd\u590d)\u8fd4\u56de {iterator, false}<br \/>\niterator insert(const Key&amp; key);                  \/\/ multiset: \u603b\u662f\u6210\u529f&#xff0c;\u8fd4\u56de\u65b0\u5143\u7d20\u8fed\u4ee3\u5668<br \/>\niterator insert(iterator hint, const Key&amp; key);   \/\/ \u4f7f\u7528\u63d0\u793a\u4f4d\u7f6e\u5c1d\u8bd5\u4f18\u5316\u63d2\u5165<br \/>\nvoid insert(InputIterator first, InputIterator last); \/\/ \u63d2\u5165\u4e00\u4e2a\u8303\u56f4\u5185\u7684\u5143\u7d20<\/p>\n<p>https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjQzNS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjczNy5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjM5My5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0Mjc0My5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjkwNy5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MzAyMi5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0Mjc2NC5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjgyMS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjU2Mi5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjY0OS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjM1NS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjM2My5zaHRtbA&#061;&#061;.html \u00a0<\/p>\n<\/li>\n<li>\u67e5\u627e: iterator find(const Key&amp; key);         \/\/ \u67e5\u627e\u7b49\u4e8e key \u7684\u5143\u7d20&#xff0c;\u627e\u5230\u8fd4\u56de\u8fed\u4ee3\u5668&#xff0c;\u5426\u5219\u8fd4\u56de end()<br \/>\nconst_iterator find(const Key&amp; key) const;<br \/>\nsize_type count(const Key&amp; key) const; \/\/ \u8fd4\u56de\u7b49\u4e8e key \u7684\u5143\u7d20\u4e2a\u6570 (set \u4e3a 0 \u6216 1&#xff0c; multiset \u53ef\u80fd &gt;1)<\/p>\n<\/li>\n<li>\u8303\u56f4\u67e5\u8be2 (\u57fa\u4e8e\u6392\u5e8f): iterator lower_bound(const Key&amp; key); \/\/ \u8fd4\u56de\u7b2c\u4e00\u4e2a\u4e0d\u5c0f\u4e8e key \u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668<br \/>\niterator upper_bound(const Key&amp; key); \/\/ \u8fd4\u56de\u7b2c\u4e00\u4e2a\u5927\u4e8e key \u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668<br \/>\nstd::pair&lt;iterator, iterator&gt; equal_range(const Key&amp; key); \/\/ \u8fd4\u56de\u5305\u542b\u6240\u6709\u7b49\u4e8e key \u7684\u5143\u7d20\u7684\u8303\u56f4 [lower_bound, upper_bound)<\/p>\n<ul>\n<li>\u8fd9\u4e9b\u64cd\u4f5c\u5bf9\u4e8e multiset \u67e5\u627e\u91cd\u590d\u952e\u7684\u6240\u6709\u5143\u7d20\u975e\u5e38\u6709\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5220\u9664: size_type erase(const Key&amp; key); \/\/ \u5220\u9664\u6240\u6709\u7b49\u4e8e key \u7684\u5143\u7d20&#xff0c;\u8fd4\u56de\u5220\u9664\u7684\u4e2a\u6570<br \/>\niterator erase(iterator position); \/\/ \u5220\u9664\u8fed\u4ee3\u5668 position \u6307\u5411\u7684\u5143\u7d20<br \/>\niterator erase(iterator first, iterator last); \/\/ \u5220\u9664\u8303\u56f4 [first, last) \u5185\u7684\u5143\u7d20<\/p>\n<\/li>\n<li>\u5927\u5c0f\u548c\u5bb9\u91cf: bool empty() const;<br \/>\nsize_type size() const;<br \/>\nsize_type max_size() const;<\/p>\n<p>https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjQzNS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjczNy5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjM5My5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0Mjc0My5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjkwNy5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MzAyMi5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0Mjc2NC5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDQxNTQ4MjkwLzY5NTk0MjgyMS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjU2Mi5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjY0OS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjM1NS5zaHRtbA&#061;&#061;.html https:\/\/tv.sohu.com\/v\/dXMvNDM4OTIwMjE2LzY5NTk0MjM2My5zaHRtbA&#061;&#061;.html \u00a0<\/p>\n<\/li>\n<li>\u5176\u4ed6: void clear(); \/\/ \u6e05\u7a7a\u5bb9\u5668<br \/>\nkey_compare key_comp() const; \/\/ \u8fd4\u56de\u6bd4\u8f83\u51fd\u6570\u5bf9\u8c61\u7684\u526f\u672c<br \/>\nvalue_compare value_comp() const; \/\/ \u5bf9\u4e8e set\/multiset, value_compare \u7b49\u540c\u4e8e key_compare<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>2. map \u548c multimap<\/h3>\n<ul>\n<li>\n<p>\u5b58\u50a8\u5185\u5bb9&#xff1a; \u5b58\u50a8\u7531\u952e (key) \u548c\u503c (value) \u7ec4\u6210\u7684\u952e\u503c\u5bf9 (pair&lt;const Key, Value&gt;)\u3002map \u4e2d\u7684\u952e\u662f\u552f\u4e00\u7684&#xff0c;multimap \u4e2d\u7684\u952e\u53ef\u4ee5\u91cd\u590d\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u4e49&#xff1a;<\/p>\n<p> #include &lt;map&gt;<br \/>\nstd::map&lt;Key, Value, Compare &#061; std::less&lt;Key&gt;, Allocator &#061; std::allocator&lt;std::pair&lt;const Key, Value&gt;&gt;&gt; map_name;<br \/>\nstd::multimap&lt;Key, Value, Compare &#061; std::less&lt;Key&gt;, Allocator &#061; std::allocator&lt;std::pair&lt;const Key, Value&gt;&gt;&gt; multimap_name;<\/p>\n<ul>\n<li>Key: \u952e\u7684\u7c7b\u578b\u3002\u5fc5\u987b\u652f\u6301\u6bd4\u8f83\u64cd\u4f5c\u3002<\/li>\n<li>Value: \u4e0e\u952e\u5173\u8054\u7684\u503c\u7684\u7c7b\u578b\u3002<\/li>\n<li>Compare: \u6bd4\u8f83\u952e\u7684\u51fd\u6570\u5bf9\u8c61\u7684\u7c7b\u578b&#xff0c;\u7528\u4e8e\u5b9a\u4e49\u6392\u5e8f\u89c4\u5219\u3002\u9ed8\u8ba4\u662f std::less&lt;Key&gt;\u3002<\/li>\n<li>Allocator: \u5185\u5b58\u5206\u914d\u5668\u7c7b\u578b&#xff0c;\u901a\u5e38\u4f7f\u7528\u9ed8\u8ba4\u503c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4e3b\u8981\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>\u6392\u5e8f&#xff1a; \u5143\u7d20&#xff08;\u952e\u503c\u5bf9&#xff09;\u59cb\u7ec8\u6309\u7167\u952e (Key)&#xff0c;\u6839\u636e Compare \u5b9a\u4e49\u7684\u89c4\u5219\u4fdd\u6301\u6709\u5e8f\u3002<\/li>\n<li>\u552f\u4e00\u6027 (\u4ec5 map): map \u4e2d\u4e0d\u5141\u8bb8\u4e24\u4e2a\u5143\u7d20\u5177\u6709\u76f8\u540c\u7684\u952e&#xff08;\u6839\u636e Compare \u5224\u65ad\u76f8\u7b49&#xff09;\u3002<\/li>\n<li>\u952e\u503c\u5bf9&#xff1a; \u5143\u7d20\u7c7b\u578b\u662f std::pair&lt;const Key, Value&gt;\u3002\u952e (Key) \u662f const \u7c7b\u578b&#xff0c;\u4e0d\u80fd\u4fee\u6539&#xff08;\u4fee\u6539\u4f1a\u7834\u574f\u6392\u5e8f&#xff09;\u3002\u503c (Value) \u53ef\u4ee5\u901a\u8fc7\u8fed\u4ee3\u5668\u6216\u7279\u5b9a\u63a5\u53e3\u4fee\u6539\u3002<\/li>\n<li>\u8fed\u4ee3\u5668&#xff1a; \u63d0\u4f9b\u53cc\u5411\u8fed\u4ee3\u5668 (iterator, const_iterator)\u3002\u8fed\u4ee3\u5668\u6309\u952e\u7684\u6392\u5e8f\u987a\u5e8f\u904d\u5386\u5143\u7d20\u3002\u901a\u8fc7\u8fed\u4ee3\u5668\u53ef\u4ee5\u4fee\u6539 value (it-&gt;second &#061; new_value;)&#xff0c;\u4f46\u4e0d\u80fd\u4fee\u6539 key (it-&gt;first \u662f const)\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5173\u952e\u6210\u5458\u51fd\u6570 (\u5927\u90e8\u5206\u4e0e set\/multiset \u7c7b\u4f3c):<\/p>\n<ul>\n<li>\u63d2\u5165: std::pair&lt;iterator, bool&gt; insert(const value_type&amp; kv_pair); \/\/ map: \u63d2\u5165\u6210\u529f\u8fd4\u56de {iterator, true}, \u5931\u8d25(\u91cd\u590d\u952e)\u8fd4\u56de {iterator, false}<br \/>\niterator insert(const value_type&amp; kv_pair);                  \/\/ multimap: \u603b\u662f\u6210\u529f&#xff0c;\u8fd4\u56de\u65b0\u5143\u7d20\u8fed\u4ee3\u5668<br \/>\niterator insert(iterator hint, const value_type&amp; kv_pair);   \/\/ \u4f7f\u7528\u63d0\u793a\u4f4d\u7f6e<br \/>\nvoid insert(InputIterator first, InputIterator last);        \/\/ \u63d2\u5165\u4e00\u4e2a\u8303\u56f4\u5185\u7684\u952e\u503c\u5bf9<\/p>\n<ul>\n<li>value_type \u662f std::pair&lt;const Key, Value&gt;\u3002\u901a\u5e38\u4f7f\u7528 std::make_pair(key, value) \u6216 {key, value} (C&#043;&#043;11 \u8d77) \u521b\u5efa\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8bbf\u95ee\/\u4fee\u6539\u5143\u7d20 (map \u7279\u6709): Value&amp; operator[](const Key&amp; key); \/\/ 1. \u5982\u679c key \u5b58\u5728&#xff0c;\u8fd4\u56de\u5176 value \u7684\u5f15\u7528\u3002<br \/>\n                                  \/\/ 2. \u5982\u679c key \u4e0d\u5b58\u5728&#xff0c;\u5219\u63d2\u5165\u4e00\u4e2a\u5177\u6709\u8be5 key \u7684\u9ed8\u8ba4\u6784\u9020\u7684 Value&#xff0c;\u5e76\u8fd4\u56de\u5176\u5f15\u7528\u3002<br \/>\nValue&amp; at(const Key&amp; key);         \/\/ \u8bbf\u95ee\u6307\u5b9a key \u7684 value \u7684\u5f15\u7528&#xff0c;\u82e5 key \u4e0d\u5b58\u5728\u5219\u629b\u51fa std::out_of_range \u5f02\u5e38\u3002<br \/>\nconst Value&amp; at(const Key&amp; key) const;<\/p>\n<ul>\n<li>operator[] \u63d0\u4f9b\u4e86\u4e00\u79cd\u4fbf\u6377\u4f46\u53ef\u80fd\u63d2\u5165\u65b0\u5143\u7d20\u7684\u65b9\u5f0f\u3002at() \u63d0\u4f9b\u4e86\u8fb9\u754c\u68c0\u67e5\u7684\u5b89\u5168\u8bbf\u95ee\u3002<\/li>\n<li>multimap \u6ca1\u6709 operator[]&#xff0c;\u56e0\u4e3a\u4e00\u4e2a\u952e\u53ef\u80fd\u5bf9\u5e94\u591a\u4e2a\u503c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u67e5\u627e: iterator find(const Key&amp; key);         \/\/ \u67e5\u627e\u952e\u7b49\u4e8e key \u7684\u5143\u7d20&#xff0c;\u627e\u5230\u8fd4\u56de\u8fed\u4ee3\u5668&#xff0c;\u5426\u5219\u8fd4\u56de end()<br \/>\nconst_iterator find(const Key&amp; key) const;<br \/>\nsize_type count(const Key&amp; key) const; \/\/ \u8fd4\u56de\u952e\u7b49\u4e8e key \u7684\u5143\u7d20\u4e2a\u6570 (map \u4e3a 0 \u6216 1&#xff0c; multimap \u53ef\u80fd &gt;1)<\/p>\n<\/li>\n<li>\u8303\u56f4\u67e5\u8be2 (\u57fa\u4e8e\u952e\u6392\u5e8f): iterator lower_bound(const Key&amp; key); \/\/ \u8fd4\u56de\u7b2c\u4e00\u4e2a\u952e\u4e0d\u5c0f\u4e8e key \u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668<br \/>\niterator upper_bound(const Key&amp; key); \/\/ \u8fd4\u56de\u7b2c\u4e00\u4e2a\u952e\u5927\u4e8e key \u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668<br \/>\nstd::pair&lt;iterator, iterator&gt; equal_range(const Key&amp; key); \/\/ \u8fd4\u56de\u5305\u542b\u6240\u6709\u952e\u7b49\u4e8e key \u7684\u5143\u7d20\u7684\u8303\u56f4 [lower_bound, upper_bound)<\/p>\n<ul>\n<li>\u8fd9\u4e9b\u64cd\u4f5c\u5bf9\u4e8e multimap \u67e5\u627e\u540c\u4e00\u952e\u5bf9\u5e94\u7684\u6240\u6709\u503c\u975e\u5e38\u6709\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5220\u9664\u3001\u5927\u5c0f\u3001\u5bb9\u91cf\u3001\u6bd4\u8f83\u51fd\u6570\u7b49&#xff1a; \u4e0e set\/multiset \u4e2d\u7684\u5bf9\u5e94\u51fd\u6570\u529f\u80fd\u548c\u4f7f\u7528\u65b9\u5f0f\u57fa\u672c\u76f8\u540c&#xff0c;\u53ea\u662f\u64cd\u4f5c\u7684\u5bf9\u8c61\u662f\u952e\u503c\u5bf9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u603b\u7ed3\u4e0e\u5bf9\u6bd4<\/h3>\n<table>\n<tr>\u7279\u6027setmultisetmapmultimap<\/tr>\n<tbody>\n<tr>\n<td style=\"text-align:left\">\u5b58\u50a8\u5185\u5bb9<\/td>\n<td style=\"text-align:left\">\u552f\u4e00\u952e (Key)<\/td>\n<td style=\"text-align:left\">\u53ef\u91cd\u590d\u952e (Key)<\/td>\n<td style=\"text-align:left\">\u552f\u4e00\u952e\u503c\u5bf9 (pair&lt;const Key, Value&gt;)<\/td>\n<td style=\"text-align:left\">\u53ef\u91cd\u590d\u952e\u503c\u5bf9 (pair&lt;const Key, Value&gt;)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u5143\u7d20\u552f\u4e00\u6027<\/td>\n<td style=\"text-align:left\">\u952e\u552f\u4e00<\/td>\n<td style=\"text-align:left\">\u952e\u53ef\u91cd\u590d<\/td>\n<td style=\"text-align:left\">\u952e\u552f\u4e00<\/td>\n<td style=\"text-align:left\">\u952e\u53ef\u91cd\u590d<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u5e95\u5c42\u7ed3\u6784<\/td>\n<td style=\"text-align:left\">\u7ea2\u9ed1\u6811 (\u901a\u5e38)<\/td>\n<td style=\"text-align:left\">\u7ea2\u9ed1\u6811 (\u901a\u5e38)<\/td>\n<td style=\"text-align:left\">\u7ea2\u9ed1\u6811 (\u901a\u5e38)<\/td>\n<td style=\"text-align:left\">\u7ea2\u9ed1\u6811 (\u901a\u5e38)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u6392\u5e8f\u4f9d\u636e<\/td>\n<td style=\"text-align:left\">Key (\u6309 Compare)<\/td>\n<td style=\"text-align:left\">Key (\u6309 Compare)<\/td>\n<td style=\"text-align:left\">Key (\u6309 Compare)<\/td>\n<td style=\"text-align:left\">Key (\u6309 Compare)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u65f6\u95f4\u590d\u6742\u5ea6<\/td>\n<td style=\"text-align:left\">\u67e5\u627e\u3001\u63d2\u5165\u3001\u5220\u9664: $O(\\\\log n)$<\/td>\n<td style=\"text-align:left\">\u67e5\u627e\u3001\u63d2\u5165\u3001\u5220\u9664: $O(\\\\log n)$<\/td>\n<td style=\"text-align:left\">\u67e5\u627e\u3001\u63d2\u5165\u3001\u5220\u9664: $O(\\\\log n)$<\/td>\n<td style=\"text-align:left\">\u67e5\u627e\u3001\u63d2\u5165\u3001\u5220\u9664: $O(\\\\log n)$<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u8fed\u4ee3\u5668\u4fee\u6539<\/td>\n<td style=\"text-align:left\">\u4e0d\u80fd\u4fee\u6539\u5143\u7d20 (\u4f1a\u7834\u574f\u6392\u5e8f)<\/td>\n<td style=\"text-align:left\">\u4e0d\u80fd\u4fee\u6539\u5143\u7d20 (\u4f1a\u7834\u574f\u6392\u5e8f)<\/td>\n<td style=\"text-align:left\">\u4e0d\u80fd\u4fee\u6539 key (const), \u53ef\u4ee5\u4fee\u6539 value<\/td>\n<td style=\"text-align:left\">\u4e0d\u80fd\u4fee\u6539 key (const), \u53ef\u4ee5\u4fee\u6539 value<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u76f4\u63a5\u8bbf\u95ee\u503c<\/td>\n<td style=\"text-align:left\">N\/A (\u952e\u5373\u503c)<\/td>\n<td style=\"text-align:left\">N\/A (\u952e\u5373\u503c)<\/td>\n<td style=\"text-align:left\">operator[], at() (\u4ec5 map)<\/td>\n<td style=\"text-align:left\">\u65e0 operator[]<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u4e3b\u8981\u7528\u9014<\/td>\n<td style=\"text-align:left\">\u6709\u5e8f\u552f\u4e00\u5143\u7d20\u96c6\u5408<\/td>\n<td style=\"text-align:left\">\u6709\u5e8f\u5143\u7d20\u96c6\u5408 (\u5141\u8bb8\u91cd\u590d)<\/td>\n<td style=\"text-align:left\">\u5b57\u5178\u3001\u5173\u8054\u6570\u7ec4 (\u952e\u552f\u4e00\u6620\u5c04\u5230\u503c)<\/td>\n<td style=\"text-align:left\">\u4e00\u5bf9\u591a\u6620\u5c04 (\u4e00\u4e2a\u952e\u5bf9\u5e94\u591a\u4e2a\u503c)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9009\u62e9\u6307\u5357&#xff1a;<\/p>\n<ul>\n<li>\u9700\u8981\u5b58\u50a8\u552f\u4e00\u503c\u5e76\u6309\u503c\u6392\u5e8f&#xff1a;\u7528 set\u3002<\/li>\n<li>\u9700\u8981\u5b58\u50a8\u53ef\u80fd\u91cd\u590d\u7684\u503c\u5e76\u6309\u503c\u6392\u5e8f&#xff1a;\u7528 multiset\u3002<\/li>\n<li>\u9700\u8981\u5efa\u7acb\u552f\u4e00\u952e\u5230\u503c\u7684\u6620\u5c04&#xff0c;\u5e76\u6309\u952e\u6392\u5e8f&#xff1a;\u7528 map\u3002\u53ef\u4ee5\u901a\u8fc7\u952e\u5feb\u901f\u67e5\u627e\u6216\u4fee\u6539\u5bf9\u5e94\u7684\u503c\u3002<\/li>\n<li>\u9700\u8981\u4e00\u4e2a\u952e\u5bf9\u5e94\u591a\u4e2a\u503c&#xff0c;\u5e76\u6309\u952e\u6392\u5e8f&#xff1a;\u7528 multimap\u3002\u4f7f\u7528 equal_range \u6216\u904d\u5386\u6765\u83b7\u53d6\u540c\u4e00\u952e\u7684\u6240\u6709\u503c\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u5173\u8054\u5bb9\u5668\u662f C&#043;&#043; STL \u4e2d\u975e\u5e38\u5f3a\u5927\u548c\u5e38\u7528\u7684\u5de5\u5177&#xff0c;\u7406\u89e3\u5b83\u4eec\u7684\u7279\u6027\u548c\u533a\u522b\u5bf9\u4e8e\u7f16\u5199\u9ad8\u6548\u3001\u6b63\u786e\u7684\u4ee3\u7801\u81f3\u5173\u91cd\u8981\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6838\u5fc3\u6982\u5ff5&#xff1a; \u8fd9\u4e9b\u5bb9\u5668\u90fd\u662f\u5173\u8054\u5bb9\u5668\u3002\u5b83\u4eec\u7684\u7279\u70b9\u662f\u5176\u4e2d\u7684\u5143\u7d20\u662f\u6309\u7167\u7279\u5b9a\u7684\u6392\u5e8f\u51c6\u5219&#xff08;\u901a\u5e38\u662f &lt; \u8fd0\u7b97\u7b26\u6216\u8005\u81ea\u5b9a\u4e49\u7684\u6bd4\u8f83\u51fd\u6570&#xff09;\u8fdb\u884c\u6392\u5e8f\u7684\u3002\u8fd9\u79cd\u6392\u5e8f\u4f7f\u5f97\u67e5\u627e\u3001\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u975e\u5e38\u9ad8\u6548&#xff0c;\u65f6\u95f4\u590d\u6742\u5ea6\u901a\u5e38\u4e3a $O(\\\\log n)$\u3002\u5b83\u4eec\u7684\u5e95\u5c42\u5b9e\u73b0\u901a\u5e38\u662f\u7ea2\u9ed1\u6811\u3002 1. set \u548c multiset \u5b58\u50a8\u5185\u5bb9&#xff1a; \u5b58\u50a8\u552f\u4e00\u7684\u952e (key)\u3002set \u4e2d\u7684\u952e\u662f\u552f\u4e00\u7684&#xff0c;multiset \u4e2d\u7684\u952e\u53ef\u4ee5\u91cd\u590d\u3002  \u5b9a\u4e49&amp;#xff1<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,190],"topic":[],"class_list":["post-64221","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/64221.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6838\u5fc3\u6982\u5ff5&#xff1a; \u8fd9\u4e9b\u5bb9\u5668\u90fd\u662f\u5173\u8054\u5bb9\u5668\u3002\u5b83\u4eec\u7684\u7279\u70b9\u662f\u5176\u4e2d\u7684\u5143\u7d20\u662f\u6309\u7167\u7279\u5b9a\u7684\u6392\u5e8f\u51c6\u5219&#xff08;\u901a\u5e38\u662f &lt; \u8fd0\u7b97\u7b26\u6216\u8005\u81ea\u5b9a\u4e49\u7684\u6bd4\u8f83\u51fd\u6570&#xff09;\u8fdb\u884c\u6392\u5e8f\u7684\u3002\u8fd9\u79cd\u6392\u5e8f\u4f7f\u5f97\u67e5\u627e\u3001\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u975e\u5e38\u9ad8\u6548&#xff0c;\u65f6\u95f4\u590d\u6742\u5ea6\u901a\u5e38\u4e3a $O(\\log n)$\u3002\u5b83\u4eec\u7684\u5e95\u5c42\u5b9e\u73b0\u901a\u5e38\u662f\u7ea2\u9ed1\u6811\u3002 1. set \u548c multiset \u5b58\u50a8\u5185\u5bb9&#xff1a; \u5b58\u50a8\u552f\u4e00\u7684\u952e (key)\u3002set \u4e2d\u7684\u952e\u662f\u552f\u4e00\u7684&#xff0c;multiset \u4e2d\u7684\u952e\u53ef\u4ee5\u91cd\u590d\u3002 \u5b9a\u4e49&amp;#xff1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/64221.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-22T19:32:18+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64221.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/64221.html\",\"name\":\"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-22T19:32:18+00:00\",\"dateModified\":\"2026-01-22T19:32:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/64221.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/64221.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64221.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/64221.html","og_locale":"zh_CN","og_type":"article","og_title":"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6838\u5fc3\u6982\u5ff5&#xff1a; \u8fd9\u4e9b\u5bb9\u5668\u90fd\u662f\u5173\u8054\u5bb9\u5668\u3002\u5b83\u4eec\u7684\u7279\u70b9\u662f\u5176\u4e2d\u7684\u5143\u7d20\u662f\u6309\u7167\u7279\u5b9a\u7684\u6392\u5e8f\u51c6\u5219&#xff08;\u901a\u5e38\u662f &lt; \u8fd0\u7b97\u7b26\u6216\u8005\u81ea\u5b9a\u4e49\u7684\u6bd4\u8f83\u51fd\u6570&#xff09;\u8fdb\u884c\u6392\u5e8f\u7684\u3002\u8fd9\u79cd\u6392\u5e8f\u4f7f\u5f97\u67e5\u627e\u3001\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u975e\u5e38\u9ad8\u6548&#xff0c;\u65f6\u95f4\u590d\u6742\u5ea6\u901a\u5e38\u4e3a $O(\\log n)$\u3002\u5b83\u4eec\u7684\u5e95\u5c42\u5b9e\u73b0\u901a\u5e38\u662f\u7ea2\u9ed1\u6811\u3002 1. set \u548c multiset \u5b58\u50a8\u5185\u5bb9&#xff1a; \u5b58\u50a8\u552f\u4e00\u7684\u952e (key)\u3002set \u4e2d\u7684\u952e\u662f\u552f\u4e00\u7684&#xff0c;multiset \u4e2d\u7684\u952e\u53ef\u4ee5\u91cd\u590d\u3002 \u5b9a\u4e49&amp;#xff1","og_url":"https:\/\/www.wsisp.com\/helps\/64221.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-22T19:32:18+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/64221.html","url":"https:\/\/www.wsisp.com\/helps\/64221.html","name":"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-22T19:32:18+00:00","dateModified":"2026-01-22T19:32:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/64221.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/64221.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/64221.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"C++\u5173\u8054\u5bb9\u5668\u8be6\u89e3\uff1aset\/map\u9ad8\u6548\u64cd\u4f5c\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/64221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=64221"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/64221\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=64221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=64221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=64221"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=64221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}