Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
STL
1.3K+ articles
C/C++ Puzzles
68+ articles
cpp-template
40+ articles
BubbleSort
23+ articles
Java-Generics
11+ articles
Algorithms-BubbleSort
4+ articles
C++-Templates
14 posts
Recent Articles
Popular Articles
Why Do I Have to Access Template Base Class Members Through the 'this' Pointer?
Last Updated: 23 July 2025
In C++, when we have a class template that inherits from a template base class, we need to explicitly use this pointer to access members of the base class. In this article...
read more
C++ Programs
C++
Picked
cpp-template
C++-Templates
CPP Examples
Where and Why Do I Have to Put the 'template' and 'typename' Keywords?
Last Updated: 23 July 2025
In C++, we have a template keyword to define template classes or functions and allow them to operate with generic types. On the other hand, we have typename keyword which ...
read more
C++ Programs
C++
Picked
cpp-template
C++-Templates
CPP Examples
How to Check if a Template Class has the Given Member Function in C++?
Last Updated: 23 July 2025
In C++ programming, we often need to check if a template class contains a specific member function. In this article, we will discuss how to check if a Template Class has t...
read more
C++ Programs
C++
Picked
cpp-template
C++-Templates
CPP Examples
Implement dynamic deque using templates class and a circular array
Last Updated: 23 July 2025
The task is to implement a dynamic Deque using templates class and a circular array, having the following functionalities: front(): Get the front item from the deque.back(...
read more
DSA
C++-Templates
cpp-deque
cpp-deque-functions
Template non-type arguments in C++
Last Updated: 23 July 2025
Prerequisite: Templates in C++Generally, a C++ template, with a single argument looks like this:templatetypename template_nameBut it has been seen that a template can have...
read more
Technical Scripter
C++
Technical Scripter 2020
C++-Function Overloading and Default Arguments
C++-Templates
Templates
Print the element at a given index in a Set in C++
Last Updated: 15 July 2025
Given a Set of integers set and an integer index, the task is to find the element in the set which is present at index. If the index is beyond limits, then print "Invalid ...
read more
C++
C++-Templates
cpp-set
std::is_trivially_copy_constructible in C/C++
Last Updated: 30 March 2020
The std::is_trivially_copy_constructible template is a type that can be trivially constructed from a value or reference of the same type. This includes scalar types, trivi...
read more
Misc
C++
C++-Templates
std is_object Template in C++
Last Updated: 19 November 2018
The std::is_object template of C++ STL is used to check whether the given type is object or not. It returns a boolean value showing the same.Syntax:template class T struc...
read more
Misc
C++
STL
cpp-template
C++-Templates
std is_floating_point Template in C++
Last Updated: 19 November 2018
The std::is_floating_point template of C++ STL is used to check whether the given type is a floating point value or not. It returns a boolean value showing the same.Syntax...
read more
Misc
C++
STL
cpp-template
C++-Templates
std::is_enum Template in C++
Last Updated: 19 November 2018
The std::is_enum template of C++ STL is used to check whether the given type is enum or not. It returns a boolean value showing the same.Syntax:template class T struct is_...
read more
Misc
C++
STL
cpp-template
C++-Templates
generate_canonical Function template in C++
Last Updated: 11 July 2025
This template in C++ is used to convert the value generated by g into a floating point value in the range [0, 1) preserving the uniformity properties of sequences generate...
read more
Misc
C++
STL
cpp-template
C++-Templates
C++ program to find the type of the given iterator
Last Updated: 11 July 2025
Given a program that uses an iterator, the task is to find the type of iterator used.Examples:Input : vector.begin()Output : Random_Access IteratorInput : list.begin()Outp...
read more
Misc
C++
cpp-iterator
STL
cpp-operator
C++-Templates
Bubble sort using Template function [Under review]
Last Updated: 24 July 2018
Write a CPP program to demonstrate bubble using template functionKnow about Bubble sortBubble-sortKnow about templatesTemplateExamples:Input : 5, 4, 2, 3Output : 2, 3, 4, ...
read more
Misc
C/C++ Puzzles
C++
cpp-template
C++-Templates
Algorithms-BubbleSort
BubbleSort
Templates in C++ vs Generics in Java
Last Updated: 28 May 2025
While building large-scale projects, we need the code to be compatible with any kind of data which is provided to it. That is the place where your written code stands abov...
read more
Java
C++-Templates
Java-Generics