프로그래밍 (확장)/More C++ Idioms(5)
-
More C++ Idioms (79. SFINAE - Substitution Failure Is Not An Error)
출처: https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/SFINAE More C++ Idioms/SFINAE - Wikibooks, open books for an open worldFrom Wikibooks, open books for an open world Jump to navigation Jump to search Prune functions that do not yield valid template instantiations from a set of overloaded functions. Substitution Failure Is Not An Error Strictly, SFINAE is a language feature aen.wikibooks.org ..
2024.08.28 -
More C++ Idioms (55. Named Parameter)
출처: https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Named_Parameter More C++ Idioms/Named Parameter - Wikibooks, open books for an open worldFrom Wikibooks, open books for an open world Jump to navigation Jump to search Simulate named (key-value pair) parameter passing style found in other languages instead of position-based parameters. Method chaining, Fluent interface When a function takes m..
2024.08.11 -
More C++ Idioms (44. Int-To-Type, Int2Type)
https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Int-To-Type More C++ Idioms/Int-To-Type - Wikibooks, open books for an open worldFrom Wikibooks, open books for an open world Jump to navigation Jump to search To treat an integral constant as a type at compile-time. To achieve static call dispatch based on constant integral values. Integral constant wrappers Function overloading in C+en.wikibook..
2024.08.05 -
More C++ Idioms (85. Tag Dispatching)
C++에서 함수 오버로딩과 템플릿을 활용하여 조건에 따라 다른 함수 호출을 선택하는 기법으로 조건에 따른 코드를 간결하고 효율적으로 작성할 수 있다. https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Tag_Dispatching More C++ Idioms/Tag Dispatching - Wikibooks, open books for an open worldFrom Wikibooks, open books for an open world Jump to navigation Jump to search Simplify writing multiple SFINAE-constrained overloads. Tag dispatching is a useful complement t..
2024.08.04 -
More C++ Idioms Site
https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms More C++ Idioms - Wikibooks, open books for an open worldC++ has indeed become too "expert friendly" -- Bjarne Stroustrup, The Problem with Programming, Technology Review, Nov 2006. Stroustrup's saying is true because experts are intimately familiar with the idioms in the language. With the increase in the idiomen.wikibooks.org "More C++ Idioms"는..
2024.08.04