{"id":259879,"date":"2015-06-22T20:01:02","date_gmt":"2015-06-22T16:01:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259879"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259879","title":{"rendered":"\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u043c\u0430\u0433\u0438\u044e \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432"},"content":{"rendered":"<p>     \t\u0428\u0430\u0431\u043b\u043e\u043d\u044b \u0432 \u0421++ \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u043c\u0435\u0442\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0427\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435? <br \/>  \u042d\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u043c\u044b <a name=\"habracut\"><\/a> \u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434 \u0441 \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u043d\u044b\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c, \u043d\u043e \u0441\u0430\u043c\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u2014 \u0442.\u0435., \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0432\u0435\u0441 \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c\u0443 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043a\u043e\u0434 \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<h4>\u0417\u0430\u0447\u0435\u043c?<\/h4>\n<p>  <img decoding=\"async\" src=\"https:\/\/photos-4.dropbox.com\/t\/2\/AADn59jPmivPYRwhg64QVCdiDPPDdvXNTb5CuaU3r_ScuQ\/12\/34752155\/jpeg\/32x32\/1\/_\/1\/2\/cover.jpg\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/2meXRGroW0IW5GWrbGq0N0xpJ7rZXefxn97CVbB40Dc?size=1600x1200&amp;size_mode=2\" alt=\"image\"\/><br \/>  \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b. \u041a\u0430\u0436\u0434\u044b\u0439 \u0421++ \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u0440\u0430\u0441\u043e\u0442\u0430, \u043a\u0440\u0430\u0441\u043e\u0442\u0430 \u2014 \u044d\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0434 <b>\u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439<\/b>, \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439<b> \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439<\/b>. <\/p>\n<h4>\u041c\u0435\u0442\u0430-\u043c\u0430\u0433\u0438\u044f \u0438 \u043d\u0435\u044f\u0432\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b<\/h4>\n<p>  \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043c\u0435\u0442\u043e\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430? \u041c\u0435\u0442\u043e\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u0440\u0443\u0433\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430. \u0414\u043b\u044f \u0421++ \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043c\u0435\u0442\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u0430\u0439\u043b.<br \/>  <img decoding=\"async\" src=\"https:\/\/photos-1.dropbox.com\/t\/2\/AABop1uyaLvVq2aScOPjRkc1HYUGECJxERJN25kD3HoYFQ\/12\/34752155\/jpeg\/32x32\/1\/_\/1\/2\/blink.jpg\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/dGg22gd4kMJIuY_LYNk3Pry5SlROPmjoXAT-oc0A5MA?size=1280x960&amp;size_mode=2\" alt=\"image\"\/><br \/>  \u0418\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b.<br \/>  \u0427\u0435\u043c \u0435\u0449\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u043e\u0442 \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439? \u0415\u0441\u043b\u0438 \u043a\u043b\u0430\u0441\u0441 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u044f\u0432\u043d\u044b\u043c \u0438\u043d\u0442\u0440\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0430, \u0442\u043e \u0434\u0430\u043b\u0435\u0435 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0441\u0430\u043c\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0441\u043e\u043c. \u0410 \u0432\u043e\u0442 \u0434\u043b\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0435\u044f\u0432\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b, \u0442.\u0435. \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0442\u0438\u043f\u0430 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c <b>\u043d\u0435\u044f\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0442\u0438\u043f\u0430<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u043c\u0435\u0442\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<h4>\u041f\u0435\u0440\u0432\u044b\u0435 \u0437\u0430\u043a\u043b\u0438\u043d\u0430\u043d\u0438\u044f: \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u0430\u044f \u0434\u0443\u0431\u0438\u043d\u0430<\/h4>\n<p>  <img decoding=\"async\" src=\"https:\/\/photos-5.dropbox.com\/t\/2\/AAA86XnyAav_8lUyXd7LWUbalI9iHH4Y5tWO_Y8rFFSrzQ\/12\/34752155\/jpeg\/32x32\/1\/_\/1\/2\/orgemag.jpg\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/1CnWTVZEUsfEyWY9OYPImhp0uT-b1AJkv0VvZJJYMng?size=1280x960&amp;size_mode=2\" alt=\"image\"\/><br \/>  \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u0448\u0430\u0431\u043b\u043e\u043d \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u0442\u0438\u043f\u044b \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430:  <\/p>\n<pre><code class=\"cpp\">typedef char CHAR; int main() {     B&lt;int&gt; b;     B&lt;char&gt; c;     B&lt;unsigned char&gt; uc;     B&lt;signed char&gt; sc;     B&lt;CHAR&gt; C;     B&lt;char, 1&gt; c1;     B&lt;char, 2-1&gt; c21;     cout &lt;&lt; &quot;b=&quot; &lt;&lt; typeid(b).name() &lt;&lt; endl;     cout &lt;&lt; &quot;c=&quot; &lt;&lt; typeid(c).name() &lt;&lt; endl;     cout &lt;&lt; &quot;C=&quot; &lt;&lt; typeid(C).name() &lt;&lt; endl;     cout &lt;&lt; &quot;sc=&quot; &lt;&lt; typeid(sc).name() &lt;&lt; endl;     cout &lt;&lt; &quot;uc=&quot; &lt;&lt; typeid(uc).name() &lt;&lt; endl;     cout &lt;&lt; &quot;c1=&quot; &lt;&lt; typeid(c1).name() &lt;&lt; endl;     cout &lt;&lt; &quot;c21=&quot; &lt;&lt; typeid(c21).name() &lt;&lt; endl;     return 0; } <\/code><\/pre>\n<p>  \u0412 \u0432\u044b\u0432\u043e\u0434\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e <b>\u0442\u0438\u043f\u044b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435<\/b> \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u2014 unsigned char &#038; char. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b \u0434\u043b\u044f char &#038; CHAR, \u0442.\u043a. typedef \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0442\u0438\u043f, \u0430 \u043b\u0438\u0448\u044c \u0434\u0430\u0435\u0442 \u0435\u043c\u0443 \u0434\u0440\u0443\u0433\u043e\u0435 \u0438\u043c\u044f. \u0418\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b \u043e\u043d\u0438 \u0438 \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 1 \u0438 2-1, \u0442.\u043a. \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u043c\u0435\u0441\u0442\u043e 2-1 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 1.<br \/>  \u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0432\u044b\u0442\u0435\u043a\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">a.h<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;iostream&gt; using namespace std; template &lt;typename T&gt; class A { public:     void f(); }; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">main.cpp<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &quot;export.h&quot; int main() {     A&lt;int&gt; a;     a.f();     return 0; } <\/code><\/pre>\n<\/p><\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">a.cpp<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &quot;export.h&quot; template &lt;typename T&gt; void A&lt;T&gt;::f()  {     cout &lt;&lt; &quot;A&lt;t&gt;::f&quot; &lt;&lt; endl; } template class A&lt;int&gt;; <\/code><\/pre>\n<\/p><\/div>\n<\/div>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435, \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435 \u0421++ \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c <b>\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e export<\/b>, \u043e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u0430 \u0444\u0438\u0447\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0442\u0440\u0443\u0434\u043d\u043e\u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c\u0430 \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u0432. \u0415\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442, \u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u043c \u043a\u043e\u0434\u0435.<br \/>  \u041a\u0440\u043e\u043c\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439:  <\/p>\n<pre><code class=\"cpp\">template&lt;typename T&gt; T func(T t, T d) {     cout &lt;&lt; &quot;func&quot; &lt;&lt; endl; }; int main() {     func('1', 2); } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438\u0437 \u0442\u0438\u043f\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u2014 \u043e\u043d \u0442\u0430\u043a \u0438 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u043e\u0434\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0449\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:  <\/p>\n<pre><code class=\"cpp\"> inline int func(char c, int i) {     return func&lt;int&gt;(c, i); }; <\/code><\/pre>\n<p>  \u041e\u043d\u0430 \u043d\u0435 \u043d\u0435\u0441\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432. <\/p>\n<h4>\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c<\/h4>\n<p>  <img decoding=\"async\" src=\"https:\/\/photos-5.dropbox.com\/t\/2\/AACWgjhzi1ydMiQql2cppHoHt-NHCDdDKyNiQ3xc9dva-Q\/12\/34752155\/jpeg\/32x32\/1\/_\/1\/2\/magic.jpg\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/w9lrh5fs5KeV-oqKSf88WEjyBXrbvURBRBvRNz4hHl4?size=1280x960&amp;size_mode=2\" alt=\"image\"\/><br \/>  \u041e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u043a\u043b\u044f\u0442\u0438\u0435 \u2014 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0430\u043b\u043e\u043d\u0430. \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u2014 \u044d\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u0442\u0438\u043f\u043e\u043c \u043b\u0438\u0431\u043e <b>\u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0442\u0438\u043f\u043e\u0432<\/b>:  <\/p>\n<pre><code class=\"cpp\">#include &lt;iostream&gt; using namespace std; template&lt;typename T&gt; T func(T t) {     cout &lt;&lt; &quot;func&quot; &lt;&lt; endl; }; template&lt;typename T&gt; T * func(T *t) {     cout &lt;&lt; &quot;func with pointer!&quot; &lt;&lt; endl; };  int main() {     func(2);     int i = 2;     func(&i); }  <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u0430\u043c \u0432\u044b\u0431\u0435\u0440\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e, \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441 \u0442\u0438\u043f\u043e\u0432 \u201c\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u0438\u043f\u201d.<\/p>\n<h4>\u0417\u043b\u043e\u0432\u0435\u0449\u0430\u044f \u043c\u0430\u0433\u0438\u044f: \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044f<\/h4>\n<p>  \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445, \u0434\u0430\u0435\u0442 \u0434\u0430\u043c \u043e\u0434\u043d\u0443 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u2014 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438.<br \/>  <img decoding=\"async\" src=\"https:\/\/photos-4.dropbox.com\/t\/2\/AABwjXwiiqb1EADxpBEDlk7_416txpIJfOCECLqNr8_z0g\/12\/34752155\/png\/32x32\/1\/_\/1\/2\/copies.png\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/KC6KmHqZ9fWn4xO_ZBXQgS8eCqFP0BI9iPm7nWF6bQI?size=1280x960&amp;size_mode=2\" alt=\"image\"\/><br \/>  \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0440\u044f\u0434\u0430 \u0438\u043b\u0438 \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0430, \u0441\u043a\u0430\u0436\u0435\u043c, \u0441\u0443\u043c\u043c\u0430 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0438:  <\/p>\n<pre><code class=\"cpp\">#include &lt;iostream&gt; using namespace std; template &lt;int i&gt; int func(int d) {     return func&lt;i-1&gt;()+d; }; template &lt;&gt; int func&lt;0&gt;(int d) {     return d; }; int main () {    cout &lt;&lt; func&lt;12&gt;() &lt;&lt; endl;    return 0; }; <\/code><\/pre>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c\u2026 \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442! \u041a\u0440\u0443\u0442\u043e? \u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0434\u043e 500:  <\/p>\n<pre><code class=\"cpp\">cout &lt;&lt; func&lt;12&gt;() &lt;&lt; endl; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u2014 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430! \u0427\u0443\u0434\u0435\u0441\u0430!<\/p>\n<h4>\u041d\u0435 \u0434\u0435\u043b\u0430\u0439 \u043a\u043e\u0437\u0443 \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0435\u043b \u0433\u0440\u043e\u0437\u0443<\/h4>\n<p>  \u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432. <br \/>  <img decoding=\"async\" src=\"https:\/\/photos-6.dropbox.com\/t\/2\/AAApkCXyHF4MG61V_vU496u6fbDGYw5vhzLuwdzQDrsGIw\/12\/34752155\/png\/32x32\/1\/_\/1\/2\/queen_of_the_pain.png\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/ztyhmJTVJzS9uAGQeUqzGWy_51QZZYUEvRuCXfllb5o?size=1280x960&amp;size_mode=2\" alt=\"image\"\/><br \/>  \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0433\u043b\u0443\u0431\u0438\u043d\u0430 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e gcc \u044d\u0442\u043e 900, \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043e\u043d \u043c\u0435\u043d\u044c\u0448\u0435. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440  <\/p>\n<pre><code class=\"bash\">$ g++ recursion.cpp -ftemplate-depth=666666666 <\/code><\/pre>\n<p>  \u0441\u043d\u0438\u043c\u0430\u0435\u0442 \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435.<br \/>  \u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0439 \u043a\u0430\u043c\u0435\u043d\u044c \u2014 \u043d\u0435 \u0436\u0434\u0438\u0442\u0435 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445. \u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u044e \u043d\u0430 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b:  <\/p>\n<pre><code class=\"cpp\">int func(int d) {     return func&lt;i-1&gt;()+d; }; template &lt;&gt;   int func&lt;0&gt;(int d) {     return d; }; ... cout &lt;&lt; func&lt;500&gt;() &lt;&lt; endl; <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0438 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u2026<br \/>  \u0422\u0440\u0435\u0442\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439: \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0447\u0442\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438 <b>\u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430<\/b>.<\/p>\n<h4>\u041c\u043e\u0449\u043d\u044b\u0435 \u0437\u0430\u043a\u043b\u0438\u043d\u0430\u043d\u0438\u044f \u0434\u0440\u0435\u0432\u043d\u0438\u0445<\/h4>\n<p>  \u0410 \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043c\u0430\u0433\u0438\u044e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u043e\u0439 \u043c\u0430\u0433\u0438\u0435\u0439?<br \/>  <img decoding=\"async\" src=\"https:\/\/photos-6.dropbox.com\/t\/2\/AAD8iyDL2ZiQDD__I238rPW1CQ568oC4cK4atZs4kPY2AQ\/12\/34752155\/png\/32x32\/1\/_\/1\/2\/diablo.png\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/mC1PDwBKL0RmkQzqbQhABwCQa5lT-BSEmBhW2FXlc8s?size=1280x960&amp;size_mode=2\" alt=\"image\"\/><br \/>  \u0414\u0440\u0435\u0432\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u043a\u043b\u0438\u043d\u0430\u043d\u0438\u0435 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Curiously_recurring_template_pattern\">CRTP<\/a>. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430: \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044f\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430 \u043a \u0442\u0438\u043f\u0443 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c <a href=\"https:\/\/github.com\/epam\/nfstrace\/blob\/master\/src\/filtration\/filtratorimpl.h\">\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/a>:  <\/p>\n<pre><code class=\"cpp\">template&lt;typename Filtrator&gt; class FiltratorImpl { inline void find_message(...) {   Filtrator* filtrator = static_cast&lt;Filtrator* &gt;(this);   \u2026   filtrator-&gt;find_and_read_message(info, collection); } }; ... class CIFSFiltrator : public FiltratorImpl&lt;CIFSFiltrator&gt; { ... inline void find_and_read_message(PacketInfo& info) {...} ... }; class RPCFiltrator : public FiltratorImpl&lt;RPCFiltrator&gt; { ... inline void find_and_read_message(PacketInfo& info) {...} ... }; <\/code><\/pre>\n<p>  \u041c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <b>\u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u0435 inline \u043c\u0435\u0442\u043e\u0434\u044b<\/b> \u0441 \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u043d\u044b\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c! \u041a\u0442\u043e \u0441\u043a\u0430\u0436\u0435\u0442 \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u043a\u0440\u0443\u0442\u043e \u2014 \u043c\u043e\u0439 \u0432\u0440\u0430\u0433 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.<br \/>  \u0414\u0440\u0435\u0432\u043d\u0438\u0435 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 \u0442\u043e\u0433\u043e:  <\/p>\n<pre><code class=\"cpp\">static_assert(std::is_member_function_pointer&lt;decltype(&Filtrator::find_and_read_message)&gt;::value) <\/code><\/pre>\n<p>  \u0447\u0442\u043e\u0431\u044b \u0434\u0435\u043c\u043e\u043d\u044b, \u0440\u0430\u0437\u0431\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u043c\u043e\u0449\u043d\u044b\u043c \u0437\u0430\u043a\u043b\u0438\u043d\u0430\u043d\u0438\u0435\u043c, \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u0438\u0442\u044c \u0432\u0440\u0435\u0434 \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u043c\u0443 \u0438\u0445 \u043c\u0430\u0433\u0443.<br \/>  <img decoding=\"async\" src=\"https:\/\/photos-4.dropbox.com\/t\/2\/AACF0zhKFJ3YKdKgMzCgbTEpee1xAHS8yyYVw3AVTUh8hw\/12\/34752155\/jpeg\/32x32\/1\/_\/1\/2\/faces.jpg\/CJuNyRAgASACIAMgBCAFIAYgBygBKAI\/wTkXj0y05mzT8L0A2v_stD8SNGinkwr7QzGzisHv7jQ?size=1280x960&amp;size_mode=2\" alt=\"image\"\/><\/p>\n<p>  \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0442\u0430\u0439\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u0438\u043a, \u0434\u0440\u0435\u0432\u043d\u0438\u0445 \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430 \u043d\u0435 \u0441\u043a\u043e\u0440\u0443\u044e \u0432\u0441\u0442\u0440\u0435\u0447\u0443 \/*\u0432 \u0430\u0434\u0443*\/, \u0438 \u0434\u0430 \u043f\u0440\u0438\u0431\u0443\u0434\u0435\u0442 \u0441 \u0432\u0430\u043c\u0438 \u043c\u043e\u0449\u044c \u0434\u0440\u0435\u0432\u043d\u0438\u0445.     \t<\/p>\n<div class=\"clear\"><\/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\/post\/260899\/\"> http:\/\/habrahabr.ru\/post\/260899\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0428\u0430\u0431\u043b\u043e\u043d\u044b \u0432 \u0421++ \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u043c\u0435\u0442\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0427\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435? <br \/>  \u042d\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u043c\u044b <\/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-259879","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259879","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=259879"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259879\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}