{"id":230501,"date":"2014-07-30T01:14:03","date_gmt":"2014-07-29T21:14:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=230501"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=230501","title":{"rendered":"<span class=\"post_title\">\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u043b\u044f\u043c\u0431\u0434\u0430\u0445 \u0432 C++11<\/span>"},"content":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/d12\/2f5\/4cc\/d122f54cce1487eef2b553cf5671f8c6.png\"\/><\/p>\n<p>  \u041a\u043e\u043c\u043f\u0430\u043d\u0438\u0438-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0441\u043f\u0435\u0448\u0430\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0421\u0438++. \u0413\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0437-\u0437\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0435\u0433\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f. \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u043e\u0432\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0432 \u043f\u043b\u0430\u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 C++11 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c GCC, <a href=\"http:\/\/gcc.gnu.org\/projects\/cxx0x.html\">\u0438 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043f\u043e\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c<\/a>. \u0411\u043b\u0430\u0433\u043e, \u0443 \u043d\u0430\u0441 \u0432 Ivideon \u043b\u043e\u044f\u043b\u044c\u043d\u043e \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u043d\u043e\u0432\u044b\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c \u0438 \u0434\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u043e\u0432\u043e\u0435.<br \/>  \u041d\u0430\u0447\u0430\u043b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u043a\u0443\u0441\u043d\u043e\u0433\u043e \u2014 \u0441 \u043b\u044f\u043c\u0431\u0434\u0430-\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439! \u0418 \u0441 \u043f\u043e\u0442\u043e\u043a\u043e\u0432.<br \/>   <a name=\"habracut\"><\/a><\/p>\n<p>  \u0425\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0437\u0430\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u043d\u0430 \u0442\u0435\u043c\u0443 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043b\u044f\u043c\u0431\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0434 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0438 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u043c. \u0422\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u044e\u0434\u0443, \u0433\u0434\u0435 \u043d\u0430\u0434\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u0435\u0439 \u0432\u0440\u0435\u043c\u044f, \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0435\u0435 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u0445.<\/p>\n<p>  \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a:<\/p>\n<pre><code>#ifndef ANIMATION_ENGINE_H #define ANIMATION_ENGINE_H  #include &lt;functional&gt;  namespace animation {  \/\/ Actor function has one parameter: time delta since previous frame \/\/ It should return true if animation has finished, \/\/      or false if it should go on typedef std::function&lt;bool(float)&gt; actor_func;  \/\/ Handler is called after the animation is complete typedef std::function&lt;void(void)&gt; handler_func;  const handler_func doNothing = [] {};  void start(unsigned intervalMs, actor_func, handler_func = doNothing);  } \/\/ end of namespace animation  #endif \/\/ ANIMATION_ENGINE_H <\/code><\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439: \u0432 start() \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0418 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f:<\/p>\n<pre><code>#include &quot;animation_engine.h&quot; #include &lt;thread&gt;  namespace animation {  void start(unsigned intervalMs, actor_func actor, handler_func handler) {     std::thread t([=]() {         auto timeStart = std::chrono::system_clock::now();         float lastInterval = 0;         while(1) {             std::this_thread::sleep_for(std::chrono::milliseconds(intervalMs));             float timeDelta = std::chrono::duration_cast&lt;std::chrono::milliseconds&gt;                     (std::chrono::system_clock::now() - timeStart).count();             if (actor(timeDelta - lastInterval)) {                 handler();                 break;             }             lastInterval = timeDelta;         }     });     t.detach(); }  } \/\/ end of namespace animation <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u0443\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435: \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430, \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f (<i>\u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435<\/i>), \u043a\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f ([=] \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0437\u0430\u0445\u0432\u0430\u0442 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445). \u0414\u0430\u043b\u044c\u0448\u0435 \u044d\u0442\u0430 \u043d\u043e\u0432\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435, \u0433\u0434\u0435 \u043e\u043d\u0430 \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u0433\u043e\u043d\u044f\u0435\u0442 \u043d\u0430\u0448\u0443 \u043d\u0435\u0441\u0447\u0430\u0441\u0442\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e actor, \u043f\u043e\u043a\u0443\u0434\u0430 \u043e\u043d\u0430 \u043d\u0435 \u0432\u0435\u0440\u043d\u0435\u0442 true. \u041d\u0443, \u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0437\u0430\u043a\u0440\u043e\u0435\u0442\u0441\u044f. \u0414\u0430\u043b\u0435\u0435 start() \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u043a\u0440\u0443\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u0432\u043e\u0451\u043c \u043f\u043e\u0442\u043e\u043a\u0435.<\/p>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0438\u0433\u0440\u0443\u0448\u043a\u0443 \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u043f\u0438\u043d\u0433-\u043f\u043e\u043d\u0433\u0430 \u0438\u043b\u0438 \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434\u0430, \u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0448\u0430\u0440\u0438\u043a. \u0412\u043e\u0442 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c:  <\/p>\n<pre><code>animation::start (30,      [=] (float dt) {         this-&gt;adjustBallDirection(dt); \/\/ bouncing, maybe gravitation         this-&gt;updateBallPosition(dt);         return (this-&gt;ballMissed()) \/\/ if player missed the ball -&gt; stop     },     [this] {          resetBall();     } ); <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0451, \u043a\u0430\u043a \u0438 \u0432\u043e\u0434\u0438\u0442\u0441\u044f, \u043d\u0430\u0434\u043e \u0441 \u043a\u043b\u044e\u0447\u043e\u043c -std=c++0x \u0438\u043b\u0438 -std=c++0x. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043a\u043b\u044e\u0447 -pthread. \u0415\u0441\u043b\u0438 \u0432\u044b, \u043a\u0430\u043a \u0438 \u044f, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 QMake, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u044d\u0442\u0438 \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 .pro-\u0444\u0430\u0439\u043b:  <\/p>\n<pre><code class=\"bash\">CONFIG += c++11 QMAKE_LFLAGS += -pthread <\/code><\/pre>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435 \u21161: \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u044b \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f, \u043f\u043e\u043a\u0430 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f-\u0430\u043a\u0442\u043e\u0440. \u0410 \u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435. \u041d\u043e \u044f \u043d\u0435 \u0441\u0442\u0430\u043b \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441 \u044d\u0442\u0438\u043c: \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0437\u0430\u043c\u0435\u0442\u043a\u0430.<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435 \u21162: \u043c\u043e\u0436\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438. \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e (\u0434\u0430 \u0445\u043e\u0442\u044f \u0431\u044b \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u0444\u043b\u0430\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0432\u0441\u0435 \u043f\u043e\u0442\u043e\u043a\u0438 \u0441 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435), \u043d\u043e, \u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u043a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0440\u0430\u0441\u043f\u0443\u0445 \u0431\u044b \u043e\u0442 \u044d\u0442\u043e\u0433\u043e.<\/p>\n<p>  \u0412\u043f\u043e\u043b\u043d\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u0431\u043e\u043b\u0435\u0435 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u2014 \u0431\u0443\u0434\u0435\u0442 \u043a\u0440\u0443\u0442\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. \u0418\u043b\u0438 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043a\u0435\u0439\u0441, \u0433\u0434\u0435 \u043b\u044f\u043c\u0431\u0434\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438 \u0431\u044b \u0436\u0438\u0437\u043d\u044c\u2026 \u0432 \u043e\u0431\u0449\u0435\u043c, \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/ivideon\/blog\/230501\/\"> http:\/\/habrahabr.ru\/company\/ivideon\/blog\/230501\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/d12\/2f5\/4cc\/d122f54cce1487eef2b553cf5671f8c6.png\"\/><\/p>\n<p>  \u041a\u043e\u043c\u043f\u0430\u043d\u0438\u0438-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0441\u043f\u0435\u0448\u0430\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0421\u0438++. \u0413\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0437-\u0437\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0435\u0433\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f. \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u043e\u0432\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0432 \u043f\u043b\u0430\u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 C++11 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c GCC, <a href=\"http:\/\/gcc.gnu.org\/projects\/cxx0x.html\">\u0438 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043f\u043e\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c<\/a>. \u0411\u043b\u0430\u0433\u043e, \u0443 \u043d\u0430\u0441 \u0432 Ivideon \u043b\u043e\u044f\u043b\u044c\u043d\u043e \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u043d\u043e\u0432\u044b\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c \u0438 \u0434\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u043e\u0432\u043e\u0435.<br \/>  \u041d\u0430\u0447\u0430\u043b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u043a\u0443\u0441\u043d\u043e\u0433\u043e \u2014 \u0441 \u043b\u044f\u043c\u0431\u0434\u0430-\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439! \u0418 \u0441 \u043f\u043e\u0442\u043e\u043a\u043e\u0432.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-230501","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/230501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230501"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/230501\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}