Why Use function_ref
function_ref practical compressors • Why use function_ref instead of std::function? ○ Performance ○ “Clear” reference semantics • Why use function_ref instead of template parameters? ○ Easier to write/read/teach ○ Usable in polymorphic hierarchies ○ Better compilation times
A photographed presentation slide compares C++ function_ref with std::function and template parameters, listing reasons such as performance, clearer reference semantics, readability, polymorphic use, and faster compilation. The joke is the overly serious technical comparison of obscure programming abstractions, making it useful as a reaction to debates about code design or premature optimization.
- @ithueti / 868 2019-04-20
- Type
- image
- Size
- 800×507 · 31.4 KiB
- Mood
- technical, ironic
- Language
- en
- Added