/explore
|
You are here |
www.cplusplus.com | ||
| | | | |
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.fluentcpp.com
Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type. |
|
| | | | | ||
| | | | |
exploringjs.com
[AI summary] A comprehensive guide to the features, syntax, and best practices of ECMAScript 6 (ES6) for JavaScript programmers. |
|
| | | | | ||
| | | | |
www.baturin.org
[AI summary] This blog post tutorial explains advanced OCaml programming concepts including parametric polymorphism, higher-order functions like combinators and composition, and algebraic data types with pattern matching. |
|
| | | |||