-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d11a18
commit 1e16893
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Dev Topic of the Day | ||
|
||
## C++ templates | ||
|
||
C++ templates let you write functions and classes that work with different data types. They use placeholders like `typename` or `class` to define these generic parts. When you use a template with a specific type, the compiler creates a version of the function or class tailored for that type. This helps avoid repeating code and ensures everything is handled correctly for each type you use. | ||
|
||
**Resources:** | ||
- [MyGreatLearning - Templates in C++](https://www.mygreatlearning.com/blog/templates-in-cpp/) | ||
- [cppreference.com - C++ Templates](https://en.cppreference.com/w/cpp/language/templates) | ||
- [YouTube - Introduction to C++ Templates](https://www.youtube.com/watch?v=I-hZkUa9mIs&pp=ygUNYysrIHRlbXBsYXRlcw%3D%3D) |