|
You are here |
howardhinnant.github.io | ||
| | | | |
entangledlogs.com
|
|
| | | | | Generic Programming: Generating part of programs Introduction Generic Programming: Programming with generic parameters to avoid unnecessary code duplication and encourage code reuse. Polymorphism is also another technique to solve code reuse Puts implicit constraints on the generic types that are to be fulfilled by concrete types. template T adder(T LHS, T RHS) { return LHS + RHS; } struct Foo { inv Val = 0; } Foo f = adder(Foo{}, Foo{}): In this code snippet, we assume that Foo meets the requirement tha... | |
| | | | |
www.cppstories.com
|
|
| | | | | Let's take a pair of two types - what can you do with such composition? In this article, I'll describe std:optional - a new helper type added in C++17. It's a wrapper for your type and a flag that indicates if the value is initialized or not. Let's see where it can be useful and how you can use it. | |
| | | | |
www.codeproject.com
|
|
| | | | | A implementation of a delegate library which can work faster than "the Fastest Possible C++ Delegates" and is completely compatible with the C++ Standard. | |
| | | | |
goongoguma.github.io
|
|
| | | . ? ? ? ? ? ? ? ? ? ?. | ||