<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									std::vector insert не работает - Разное				            </title>
            <link>https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/</link>
            <description>Обсуждение вопросов, посвященных программированию микроконтроллеров, разработке электроники и не только.</description>
            <language>ru-RU</language>
            <lastBuildDate>Tue, 15 Sep 2026 09:40:40 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>НА: std::vector insert не работает</title>
                        <link>https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3534</link>
                        <pubDate>Sat, 05 Apr 2025 14:33:09 +0000</pubDate>
                        <description><![CDATA[@_make_ &#x1f600;]]></description>
                        <content:encoded><![CDATA[@_make_ &#x1f600;]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/raznoe/">Разное</category>                        <dc:creator>Aveal MT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3534</guid>
                    </item>
				                    <item>
                        <title>НА: std::vector insert не работает</title>
                        <link>https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3533</link>
                        <pubDate>Sat, 05 Apr 2025 10:14:33 +0000</pubDate>
                        <description><![CDATA[@aveal Пооонял, моя ошибка...
А я-то уже начал думать компьютер взбунтовался и не вставляет элемент &#x1f600;]]></description>
                        <content:encoded><![CDATA[<p>@aveal Пооонял, моя ошибка...</p>
<p>А я-то уже начал думать компьютер взбунтовался и не вставляет элемент &#x1f600; </p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/raznoe/">Разное</category>                        <dc:creator>_make_</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3533</guid>
                    </item>
				                    <item>
                        <title>НА: std::vector insert не работает</title>
                        <link>https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3532</link>
                        <pubDate>Sat, 05 Apr 2025 08:54:07 +0000</pubDate>
                        <description><![CDATA[insert() первым аргументом принимает не индекс, а итератор, то есть в данном случае может быть так:
results.insert(results.begin() + 3, 10);
При этом вставляемый элемент будет находиться п...]]></description>
                        <content:encoded><![CDATA[<p><em>insert() </em>первым аргументом принимает не индекс, а итератор, то есть в данном случае может быть так:</p>
<pre contenteditable="false">results.insert(results.begin() + 3, 10);</pre>
<p>При этом вставляемый элемент будет находиться перед тем, на который указывает итератор (а не после).</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/raznoe/">Разное</category>                        <dc:creator>Aveal MT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3532</guid>
                    </item>
				                    <item>
                        <title>std::vector insert не работает</title>
                        <link>https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3531</link>
                        <pubDate>Fri, 04 Apr 2025 18:08:00 +0000</pubDate>
                        <description><![CDATA[Столкнулся с непонятной проблемой, а именно: не могу вставить элемент в std::vector&lt;int&gt;:
std::vector&lt;int&gt; results;

results.push_back(1);
results.push_back(2);
results.push...]]></description>
                        <content:encoded><![CDATA[<p>Столкнулся с непонятной проблемой, а именно: не могу вставить элемент в std::vector&lt;int&gt;:</p>
<pre contenteditable="false">std::vector&lt;int&gt; results;

results.push_back(1);
results.push_back(2);
results.push_back(3);
results.push_back(4);
results.push_back(5);</pre>
<p>Теперь хочу вставить еще одно значение между 3 и 4:</p>
<pre contenteditable="false">results.insert(2, 10);</pre>
<p>В результате ничего не меняется, что здесь не так делаю?</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/raznoe/">Разное</category>                        <dc:creator>_make_</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/raznoe/stdvector-insert-ne-rabotaet/#post-3531</guid>
                    </item>
							        </channel>
        </rss>
		