{"id":50,"date":"2019-02-26T13:03:46","date_gmt":"2019-02-26T05:03:46","guid":{"rendered":"https:\/\/www.adokenai.ru\/?page_id=50"},"modified":"2024-04-05T18:54:10","modified_gmt":"2024-04-05T10:54:10","slug":"%d1%88%d0%b0%d0%b1%d0%bb%d0%be%d0%bd%d0%bd%d1%8b%d0%b5-%d1%80%d0%b0%d0%b7%d0%b2%d1%91%d1%80%d1%82%d0%ba%d0%b8","status":"publish","type":"page","link":"https:\/\/www.adokenai.ru\/?page_id=50","title":{"rendered":"\u0428\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u043a\u0438"},"content":{"rendered":"\n<p>\u0428\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u043a\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u043a\u043e\u0434 \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u0424\u0430\u0439\u043b <a href=\"https:\/\/gitlab.com\/adokenai30\/nose\/-\/blob\/master\/include\/stdlib\/repeat.hpp?ref_type=heads\" target=\"_blank\" rel=\"noreferrer noopener\">repeat.hpp<\/a><\/p>\n\n\n\n<p>\u0427\u0435\u0441\u0442\u043d\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c, \u0447\u0442\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0441\u043b\u043e\u0436\u043d\u044b \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f. <\/p>\n\n\n\n<p>\u041a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0438\u043a\u043b\u0430 \u0441 \u0447\u0451\u0442\u043a\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0446\u0438\u043a\u043b\u0430, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u043f\u043e\u0432\u043e\u0434 \u0434\u043b\u044f &#171;\u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u0438&#187;. \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u0438 \u0446\u0438\u043a\u043b\u043e\u0432, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043e\u043f\u044b\u0442\u0443, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u0432\u043e\u0441\u044c\u043c\u0438\u043a\u0440\u0430\u0442\u043d\u043e\u0439 \u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u043e\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u0432\u043e\u0441\u044c\u043c\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043a\u043e\u0434\u0430 \u0446\u0438\u043a\u043b\u0430, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e.<\/p>\n\n\n\n<p>\u0428\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435, \u0434\u0435\u043b\u0430\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u0443\u044e \u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u0443 \u0446\u0438\u043a\u043b\u0430, \u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.<\/p>\n\n\n\n<p>\u041d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>template&lt;size_t N, typename FunctionType&gt;\nfdown_t&lt;N,FunctionType,N&gt; fdown(FunctionType function)\n{\n  return fdown_t&lt;N,FunctionType,N&gt;(function);\n}<\/code><\/pre>\n\n\n\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 <strong>N<\/strong> &#8212; \u0447\u0438\u0441\u043b\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439 \u043a\u043e\u0434\u0430. \u042d\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. <strong>FunctionType<\/strong> &#8212; \u0442\u0438\u043f \u0444\u0443\u043d\u043a\u0446\u0438\u0438. <strong>function <\/strong>&#8212; \u0441\u0430\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f.<\/p>\n\n\n\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>template&lt;size_t N, typename FunctionType, size_t I&gt;\nclass fdown_t\n{\npublic:\n  fdown_t(FunctionType function) : function_(function) {}\n  FunctionType operator()()\n  {\n    function_(I-1);\n    return fdown_t&lt;N,FunctionType,I-1&gt;(function_)();\n  }\nprivate:\n  FunctionType function_;\n};<\/code><\/pre>\n\n\n\n<p><strong>N<\/strong> \u0438 <strong>FunctionType<\/strong> \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442 \u0441\u0432\u043e\u0451 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0410 <strong>I<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0446\u0438\u043a\u043b\u0430.<br>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 \u0442\u0435\u043b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u043d\u044b\u043c <strong>I<\/strong> \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u043e\u0441\u0438\u0442 \u0438\u043c\u044f <strong>fdown_t<\/strong> (for down to).<\/p>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <strong>I<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0446\u0438\u043a\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f, \u0437\u0430 \u043e\u0434\u043d\u0438\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>template&lt;size_t N, typename FunctionType&gt;\nclass fdown_t&lt;N,FunctionType,0&gt;\n{\npublic:\n  fdown_t(FunctionType function) : function_(function) {}\n  FunctionType operator()() { return function_; }\nprivate:\n  FunctionType function_;\n};<\/code><\/pre>\n\n\n\n<p>\u041c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>I<\/strong> \u0440\u043e\u0432\u0435\u043d \u043d\u0443\u043b\u044e, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d. \u042d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0441\u0435 \u0432\u044b\u0448\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c <strong>return<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442. \u0410\u0434\u0440\u0435\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432\u0432\u0435\u0440\u0445. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0440\u0430\u0432\u043d\u043e\u0435 \u0441\u0430\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043a\u0430\u043a \u0438 \u0441\u0430\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0446\u0438\u043a\u043b\u0430. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442\u0441\u044f <strong>fup_t<\/strong>, <strong>frangeup_t<\/strong>, <strong>frangedown_t<\/strong>, \u0433\u0434\u0435 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043e\u0442 \u043d\u0443\u043b\u044f, \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043e\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <a rel=\"noreferrer noopener\" aria-label=\" (\u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435)\" href=\"https:\/\/bitbucket.org\/adokenai\/nose\/src\/master\/kernel\/kputc.cpp\" target=\"_blank\">kputc.cpp<\/a><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void drawGlyph(\n\tu32 uX, \/\/\u0422\u043e\u0447\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f (X, Y)\n\tu32 uY, \/\/\n\tHANDLE hGlyph, \/\/\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\n  eCOLOR foreColor, \/\/\u0426\u0432\u0435\u0442\u0430: \u0442\u0435\u043a\u0441\u0442\u0430\n  eCOLOR backColor   \/\/\u0444\u043e\u043d\n){\n\tpu8 hcGlyph=reinterpret_cast&lt;pu8&gt;(hGlyph);\n\tuY*=fb_width;\n\t\n\tfup&lt;16&gt;(&#91;&amp;](size_t){\n\t\tu8 line=*hcGlyph++;\n\t\tpu32 fb_offset=&amp;fb_base&#91;uY];\n\t\tfdown&lt;8&gt;(&#91;&amp;](size_t bit){\n\t\t\tfb_offset&#91; uX++ ]=bitif(line,bit,foreColor,backColor);\n\t\t})();\n\t\tuX+=fb_width-8;\n\t})();\n\t\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0428\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u043a\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u043a\u043e\u0434 \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0424\u0430\u0439\u043b repeat.hpp \u0427\u0435\u0441\u0442\u043d\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c, \u0447\u0442\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0441\u043b\u043e\u0436\u043d\u044b \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f. \u041a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0438\u043a\u043b\u0430 \u0441 \u0447\u0451\u0442\u043a\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0446\u0438\u043a\u043b\u0430, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u043f\u043e\u0432\u043e\u0434 \u0434\u043b\u044f &#171;\u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u0438&#187;. \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u0438 \u0446\u0438\u043a\u043b\u043e\u0432, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043e\u043f\u044b\u0442\u0443, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u0432\u043e\u0441\u044c\u043c\u0438\u043a\u0440\u0430\u0442\u043d\u043e\u0439 \u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u043e\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u0432\u043e\u0441\u044c\u043c\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043a\u043e\u0434\u0430 &hellip; <a href=\"https:\/\/www.adokenai.ru\/?page_id=50\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"screen-reader-text\">\u0428\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u043a\u0438<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-50","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=\/wp\/v2\/pages\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":2,"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=\/wp\/v2\/pages\/50\/revisions"}],"predecessor-version":[{"id":158,"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=\/wp\/v2\/pages\/50\/revisions\/158"}],"wp:attachment":[{"href":"https:\/\/www.adokenai.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}