Static Polymorphism using Curiously Recurring Template Pattern (CRTP)by@SoulCollector
2,148 reads
2,148 reads

Static Polymorphism using Curiously Recurring Template Pattern (CRTP)

by Kshiteej4mApril 5th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Polymorphism is the ability (in programming) to present the same interface for differing underlying forms (data types) in C++. C++ support both Dynamic and Static polymorphism. Dynamic polymorphism means the type of the object is not known at compile time ( maybe based on user input, etc), and thus the compiler adds extra data structure to support this. Static Polymorism can be used when one wants their own Expression Template Library. The C++ standard doesn't dictate on how it should be implemented, so we will brush aside all the discussion on dynamic polymorphism.

Coin Mentioned

Mention Thumbnail
featured image - Static Polymorphism using Curiously Recurring Template Pattern (CRTP)
Kshiteej HackerNoon profile picture
Kshiteej

Kshiteej

@SoulCollector

Share Your Thoughts

About Author

Kshiteej HackerNoon profile picture
Kshiteej@SoulCollector

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!