ã¬ã¤ãã¬å宿ï¼(*)ã®ã»ããã¼çºè¡¨ã¹ã©ã¤ãã§ãã * https://sites.google.com/view/rtcamp9/home - 2023/09/08 âé¤ç®æ³2â追è¨ãï¼@Reputelessãããããã¨ããããã¾ããï¼
ãã®ããã°ã¯ãæ ªå¼ä¼ç¤¾ãã£ãã¯ã¹ã¿ã¼ãºã®ã¨ã³ã¸ãã¢ãããããããã¼ãã«ã¤ãã¦èªç±ã«æ¸ãã¦ããããã°ã§ãã ãã®è¨äºã¯C++ Advent Calendar 2022ã®9æ¥ç®ã®è¨äºã§ãã çãã¾ããã«ã¡ã¯ãä»æ¥ãã½ããã¦ã§ã¢é«éåãã¦ã¾ããï¼ ç§ãç¸å¤ãããè²ã ã¨é«éåãã¦ããæ¥ã ã§ãããæè¿ãç§ãæ¸ããã«ã¼ãå±éã®ã³ã¼ããè¦ã¦ãã©ãããä»çµã¿ã§å±éããããã§ããï¼ãã¨ç¤¾å ã§èããããã¨ããã£ãã®ã§ããã£ãããªã®ã§å ±æãã¦ããããã¨æãã¾ãã TL;DR: N段ã«ã¼ãå±éã³ã¼ãã¯ãæè¿ã®C++æ©è½ã使ãã°ä»¥ä¸ã®ããã«ç°¡æ½ã«æ¸ãã¾ãã template<std::size_t... unrollIndices> void vectoradd(double z[], const double x[], const double y[], const std::size_t n, std::ind
C++ã§æ°ããããã¸ã§ã¯ããä½æããã¨ãã«èªåãå®åçã«ãã£ã¦ãããã¨ãåå¿é²çã«ã¾ã¨ãã¾ãããå®å ¨ã«ææµãªã®ã§ãããããããæ¹ããããããªã©ã®ã¢ããã¤ã¹ã¯æè¿ã§ãã ãã®è¨äºä¸ã§ã¯åãã¡ã¤ã«ã§èª¬æãå¿ è¦ãªé¨åã ãã示ãã¾ãããå ¨ã¦ã®ãµã³ãã«ã¯githubã«ããã¦ããã¾ãã cpp-template: https://github.com/m-mizutani/cpp-template åæ UNIXãã¼ã¹ã®CLIã§åä½ããã¢ããªã±ã¼ã·ã§ã³ or ã©ã¤ãã©ãªãä½ã ã³ã³ãã¤ã«ã¯cmakeã使ç¨ãã ãã¡ã¤ã«åã¯ã½ã¼ã¹ã³ã¼ãã*.ccãããããã¡ã¤ã«ã*.hppã ã¨ãã ãµã³ãã«ã§ã¯cpptemplate ã¨ããããã¸ã§ã¯ãåã ã¨ä»®å®ãã¾ã ããã¸ã§ã¯ãç¨ãã¡ã¤ã«ã®æºå CMakeList.txt ãµã³ãã« cmakeã§ãã«ãããããã®è¨å®ãã¡ã¤ã«ã§ãããã®ãµã³ãã«ã§ã¯CLIã¢ããªã±ã¼ã·ã§ã³
21st Century C by Ben Klemens was a great read. It had a section with an intro to autotools, git, and gdb. There are a few other useful tools that came to mind that Iâve used when working with C and C++ codebases. These tools are a great way to start contributing to Open Source C & C++ codebases; running these tools on the code or adding them to the codebases. A lot of these favor command line, op
Spring Bootã«ããAPIããã¯ã¨ã³ãæ§ç¯å®è·µã¬ã¤ã 第2ç ä½å人ãã®éçºè ããInfoQã®ããããã¯ãPractical Guide to Building an API Back End with Spring BootããããSpring Bootã使ã£ãREST APIæ§ç¯ã®åºç¤ãå¦ãã ããã®æ¬ã§ã¯ãåºçæã«æ°ãããªãªã¼ã¹ããããã¼ã¸ã§ã³ã§ãã Spring Boot 2 ã使ç¨ãã¦ãããããããSpring Boot3ãæè¿ãªãªã¼ã¹ãããéè¦ãªå¤...
1. ã¯ããã« æ¬ãã¼ã¸ã§ã¯ã精度ä¿è¨¼ä»ãæ°å¤è¨ç®ãè¡ãããã«C++ã§ä½æãã ã©ã¤ãã©ãªç¾¤ãå ¬éãã¦ããã ç¹ã«éç·å½¢è¨ç®ã®ç²¾åº¦ä¿è¨¼ãè¡ãã¨ããtemplateæ©è½ã«ãã£ã¦ è¤éãªæ°å¤åããã£ããè¨è¿°ã§ãããªãã㤠"zero-overhead principle" 㧠è¨ç®é度ãé ããªããªãC++ã¯ãé常ã«é©ãã¦ããã¨è¨ãã (ã»ã¼å¯ä¸ç¡äºã§ããã¨ä½è ã¯èãã¦ããã)ã 精度ä¿è¨¼ä»ãæ°å¤è¨ç®ã¨kvã©ã¤ãã©ãªã®æ¦è¦ã«ã¤ãã¦ã¯ã ãã®ã¹ã©ã¤ããè¦ã¦æ¬²ããã kv-intro.pdf (å ¨84ãã¼ã¸) 2007å¹´ç§é ï½2013å¹´æ¥é ã®éã¯ãåºéæ¼ç®ãè¡ãã®ã«boostã«å«ã¾ãã¦ãã intervalã©ã¤ãã©ãªãç¨ãã¦éçºãã¦ãããã boost.intervalã¯æ®å¿µãªããä¸å®å ¨ãªé¨åãå¤ã ã©ã¤ãã©ãªæ¬ä½ã«æãå ¥ããããå¾ãªãã£ãã boostå ¨ä½ãã¢ãããã¼ããã度ã«intervalé¨å
ãã¼ããæ¹æ³ãããããã§ãã http://okwave.jp/qa/q6902744.html ã¡ãã¨èªã¿ã«ããã£ãã®ã§æ¸ãç´ãã¾ãã namespace myLib { namespace { // privateãªå®è£ namespace prv_impl { void hoge_impl() { /* ã»ã«ããã */ } } // publicãªå®ç¾© void hoge() { prv_impl::hoge_impl(); } } namespace prv_impl {}; // å®è£ ãæ¸ãã¦ããæ¹ã®prv_implã¸ã®ã¢ã¯ã»ã¹æ®ºãã }void func() { myLib::hoge(); // ããã¯OKã // ã§ã myLib::prv_impl::hoge_impl(); ã¯NGï¼ }ããã¯VC2010ã§ã³ã³ãã¤ã«éãã¾ãããæåãã£ã±ãæå³ãããããªãã£ãã®ã§ãã
ä»å㯠"Double-Checked Locking" (以ä¸DCL)ã¨ãããã«ãã¹ã¬ããããã°ã©ã åãã®ã¤ãã£ãªã ãä¾ã«ãã¦ãC++0xã®(ä½ã¬ã¤ã¤åã)ãã«ãã¹ã¬ããæ©è½ã®å©ç¨æ¹æ³ãç´¹ä»ãã¦ã¿ã¾ãã DCLã¨ã¯ããããã¯âæ¡ä»¶å¤å®ãã¨ãããã¸ãã¯ããæ¡ä»¶å¤å®âããã¯â(å度)æ¡ä»¶å¤å®ãã¨æ¸ãæããã¤ãã£ãªã ã§ã主ã«é 延åæåãªã©ã®å¦çã«ããã¦ããã¯ã®ãªã¼ãã¼ããããæ¸ããããã«ç¨ãããã¾ããDCLã¯ã·ã³ãã«ãã¤å¹æã®é«ãã¤ãã£ãªã ã ã£ãã®ã§ãä¸ææãã¦ã¯ãããã¾ãããã¨ããããDCLã¯ã³ã³ãã¤ã©ãCPUã«ãããªãªã¼ãã¼ã®å½±é¿ã«ããæ£ããåä½ããªãå ´åããããã¨ãããã£ããã(åè1ãåè2)ãä»ã§ã¯ã¢ã³ããã¿ã¼ã³ã¨å¼ã°ãããã¨ããããå§æ«ã§ãã ããããDCLã®åé¡ç¹ã¯ãã¡ã¢ãªã¢ãã«ã«é¢ããç¥èããã¾ãç¥ããã¦ããªãã£ããã¨ã¨ãããã°ã©ãã³ã°è¨èªã®ä»æ§ã§ã¡ã¢ãªã¢ãã«ãæ£ããå®ç¾©ããã¦
ã\n ããã«ã¡ã¯ãfadisã§ããâ æè¿è©±é¡ã®æA社ã§åãã¦ãã¾ããâ ããªè¨èªã¯C++ã好ããªã¨ãã£ã¿ã¯Vimã好ããªãã£ã¹ããªã¯Gentooã§ãããæ¨æ¥æ±äº¬ã®æ¹ã§ãã£ã¦ããééããã°ã©ãã³ã°åå¼·ä¼ã«ããã¨ãâ ãã®3ã¤ã¯TLããå¤æ ãæ¤åºãããã¼ã¯ã¼ãã¨ãã¦ä½¿ãããããã§ããã¡ãã£ã¨ããããªã«å¥å ¨ãªäººãå¤æ ã«åé¡ãããã¨ã誤èªèã«ãç¨ãããã¨æãã®ã§ããã\n ããã«ã¡ã¯ãfadisã§ããâ æè¿è©±é¡ã®æA社ã§åãã¦ãã¾ããâ ããªè¨èªã¯C++ã好ããªã¨ãã£ã¿ã¯Vimã好ããªãã£ã¹ããªã¯Gentooã§ãããæ¨æ¥æ±äº¬ã®æ¹ã§ãã£ã¦ããééããã°ã©ãã³ã°åå¼·ä¼ã«ããã¨ãâ ãã®3ã¤ã¯TLããå¤æ ãæ¤åºãããã¼ã¯ã¼ãã¨ãã¦ä½¿ãããããã§ããã¡ãã£ã¨ããããªã«å¥å ¨ãªäººãå¤æ ã«åé¡ãããã¨ã誤èªèã«ãç¨ãããã¨æãã®ã§ããã\n ããã«ã¡ã¯ãfadisã§ããâ æè¿è©±é¡ã®æA社ã§åãã¦ãã¾ããâ ããªè¨èªã¯C
yacc ã lex ãã¤ãã£ã¦ãã¦ãããªãããããããããã©ããããã¨ããç¶æ ã«ãªããã¡ã ã£ãããã°ãã¼ãã«å¤æ°ã«ã¾ã¿ãããããã¡ã ããre2c + lemon ã ã¨ãã®ã¸ãããã£ããããã ã¬ããµã以ä¸ã®ããã«ãããyyfill ãèªåã§ãããªããã°ãããªãã®ãã¡ãã£ã¨é¢åã ãããã®ãããªã¯ã©ã¹ãæ軽ã«ãããã®ã¯ãã¯ã便å©ã§ãããflex ã§ã¯ããã¯ãããªãã®ã ã #ifndef CALC_SCANNER_H_ #define CALC_SCANNER_H_ #include <stdio.h> #include <string.h> #include <string> #include <sstream> #include <vector> #include <iostream> #include <fstream> #include "scanner.def.h" #include
ã¯ããã« C++ã§ã¯é常ãã¯ã©ã¹ã®privateã¡ã³ãã«å¤é¨ããã¢ã¯ã»ã¹ãããã¨ãã§ããªãã ã¢ã¯ã»ã¹ããããã«ã¯ãfriendé¢æ°ãfriendã¯ã©ã¹ãç¨ããã ãããã http://bloglitb.blogspot.com/2010/07/access-to-private-members-thats-easy.html ã§è©±é¡ã¨ãªããDaveãã https://gist.github.com/1528856 ã«ã¨ãã»ã³ã¹ãæ½åºããã³ã¼ããèµ·ããã¦ããããprivateã¡ã³ãã«å¤é¨ããåæ³çã«ã¢ã¯ã»ã¹ããæ¹æ³ãããã Daveã®ã³ã¼ãã®ã³ã¡ã³ãã ãã§å¿ è¦ååãããããªãããç§ã¯ç解ããã®ã«ããªãæéãããã£ã¦ãã¾ã£ãã®ã§ããã®çµç·¯ãå¿ããªãããã«ãããã«æ¸ãã¦ããããã¨æãã ã¡ã³ããã¤ã³ã¿ã®å¾©ç¿ ã¾ãã¯ããã®ã³ã¼ããè¦ã¦æ¬²ããã http://ideone.com/dGRqg
monoãã¼ã ããCXXIã¨ããæ°ããã³ã³ãã¼ãã³ããç»å ´ãã¾ãããããã¯C++ã¨C#ã®interoperabilityãå®ç¾ãããã¬ã¼ã ã¯ã¼ã¯ã ããã§ãã ã CXXI: Briding the C++ and C# worlds. http://tirania.org/blog/archive/2011/Dec-19.html 以åããcppinteropã¨ããååã§ä½ã£ã¦ãããã«ã¼ãã¡ããã¦ã7æã®Monospace conferenceã§ãçºè¡¨ããã¦ããã®ã§ãããããããã©ãã·ã¥ã¢ããããã¦ç»å ´ããã®ãã³ã¬ã§ãã ã mono / cxxi https://github.com/mono/cxxi 以ä¸ã6å²æ¹âè¨äºã®å 容ãå¼ã£å¼µã£ã¦ãã¦ãã¾ãã CXXIã®æ©è½ã»ç¹å¾´ CXXIãå®éã«ãµãã¼ãããæ©è½ã¯ããã£ã¨æ¬¡ã®ãããªãã®ã ããã§ãï¼ä¾¿å®ä¸C#ã¨.NETã¯ã¾ã¨ãã¦C#ã¨æ¸ãã¾ãï¼
Plowing through some devilish details of template argument deduction, the conditional operator and the macro preprocessor, Eric develops a robust FOR_EACH iterator. Whether you're using arrays, strings, or containers, this one does it all. Conditional Love: FOREACH Redux My CS201 "Software Development Methods" professor taught that all anyone would ever need to know about C++'s ternary conditional
http://anond.hatelabo.jp/20100222033058 ããªãã»ã»ã»ãè¦æãã¦disã£ã¦ã人ãã»ã»ã»ã§ãããã 人ããdisãããã¨ããã£ã¦äºã¯ãéã«ãdisãããããããããªãã¨ããå±éºãã常ã«ãè¦æãã¦disã£ã¦ã人ãã£ã¦ããã§ãããã»ã»ã»
åæ£KVS kumofs ã®ã³ã¼ãã¯ãå ¨ä½ã§ç´2ä¸è¡ã§ã*1ã ãã®ãã¡ããããã¯ã¼ã¯I/Oããããã³ã«ã«é¢ããã³ã¼ãã¯ç´1ä¸è¡*2ã§ãå ¨ä½ã®ç´ååãå ãã¦ãã¾ãã ãã¸ãã¯ã¯æ®ãã®åå*3ã ãã§å®è£ ããã¦ãã¾ãã ãã®å®ä¾ããåããã¾ãããkumofsã®ãããªåæ£ã¢ããªã±ã¼ã·ã§ã³ãéçºããã«ã¯I/Oå¨ãã®å®è£ ã大å¤ã§ãã¨ã¦ã¤ããªã大ããªéå£ã«ãªã£ã¦ãã¾ãã*4 ããã«ä»æ¥ã§ã¯ãæ§è½ã稼ãããã«ãã«ãã¹ã¬ããåãå¿ é ã§ããã¾ããå¤æ°ã®ã¯ã©ã¤ã¢ã³ããå°ãªããªã½ã¼ã¹ã§å¹çããç¸æã«ããã«ã¯ãéåæã»ã¤ãã³ãé§ååã®ã¢ã¼ããã¯ãã£ãå¿ è¦ã«ãªãã¾ããããã«ã究極çãªæ§è½ãéæãã¹ã GC ãå©ç¨ããªã C++ ã«ããã¦ã¯ãå®è£ ã®ã¿ãªããè¨è¨ã大å¤ã§ãã ããã«å ãã¦ã½ã±ããAPIã®é£è§£ãªæåã«å¯¾å¦ã«ããªããã°ãªããªããããCè¨èªãC++ã«ãããããã¯ã¼ã¯ããã°ã©ãã³ã°ã¯ãvimã®ä½¿ãããªããªã©ã¨å
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}