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
Python
19.6K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
C++
3.7K+ articles
Python Programs
3.7K+ articles
Difference Between
3.1K+ articles
Solidity
112+ articles
Blockchain
92+ articles
java-swing
63+ articles
Programming Language
/
C++
C++
4.2K+ posts
Recent Articles
Popular Articles
C++ Implementation Double-Ended Queue
Last Updated: 23 July 2025
A Double-Ended Queue (Deque) is an abstract data structure that generalizes a queue, for which elements can be added to or removed from either the front (head) or back (ta...
read more
C++
Picked
CPP-DSA
How to Provide a Swap Function for My Class in C++?
Last Updated: 23 July 2025
In C++, providing a swap function for the class allows efficient swapping of the objects of that class type which can be important for many algorithms like sorting algorit...
read more
C++
Picked
STL
cpp-class
Why Doesn't std::queue::pop Return Value?
Last Updated: 23 July 2025
In C++, we use std::queue which is a container adapter in the standard template library (STL) and is used for managing a collection of elements in a FIFO (first-in, first-...
read more
C++
Picked
STL
cpp-queue
How to Specify a Pointer to an Overloaded Function?
Last Updated: 23 July 2025
In C++, function overloading allows multiple functions to have the same name but different parameter lists. While overloading is a powerful feature, it can lead to ambigui...
read more
C++
Picked
STL
How to Convert wstring to string in C++?
Last Updated: 23 July 2025
std::wstring in C++, is a wide string type where each character is a wide character, typically used for internationalization. Sometimes, we need to convert a std::wstring ...
read more
C++ Programs
C++
Picked
STL
How to Sort using Member Function as Comparator in C++?
Last Updated: 23 July 2025
In C++, sorting is a common operation that can be customized by providing a comparator function. When working with classes, we might need to sort objects based on their me...
read more
C++ Programs
C++
Picked
STL
How to Sort a Vector of Pairs Based on the Second Element of the Pair in C++?
Last Updated: 23 July 2025
In C++, a vector of pairs is a common data structure used to store pairs of values. Sometimes, when dealing with pairs we need to sort such vectors of pairs based on a spe...
read more
C++ Programs
C++
Picked
STL
cpp-vector
cpp-pair
Why Can I Not push_back a unique_ptr into a Vector?
Last Updated: 23 July 2025
In C++, the STL provides us with the containers and smart pointers that help us manage dynamic memory efficiently. However, we might encounter difficulties when trying to ...
read more
C++
Picked
STL
cpp-vector
Alternative to vector<bool>
Last Updated: 23 July 2025
In C++, std::vector is a container in STL that we use commonly. However, std::vectorbool has a specialized implementation that can lead to several issues, including perfor...
read more
C++
Picked
STL
cpp-vector
How to Get Vector Pointer to Raw Data in C++?
Last Updated: 23 July 2025
In C++, vector is a dynamic array that stores the data in the contiguous memory allocated during runtime. It internally keeps the pointer to this raw data memory. In this ...
read more
C++
Picked
STL
cpp-vector
Error: std::endl is of Unknown Type when Overloading Operator <<
Last Updated: 22 July 2024
In C++, the operator is commonly overloaded for custom output for user-defined types using streams. However, an issue may arise when using std::endl with an overloaded op...
read more
C++
Picked
cpp-input-output
cpp-operator-overloading
cpp-manipulators
Why can't simple initialize (with braces) 2D std::array?
Last Updated: 23 July 2025
C++ provides a fixed-size sequence container named std::array. It is a useful alternative to C-style arrays, providing additional features such as bounds checking and iter...
read more
C++
Picked
STL
cpp-array
Floating Point Values as Keys in std:map
Last Updated: 23 July 2025
The std::map in C++ is a sorted associative container that stores key-value pairs, where each key is unique. When working with std::map, keys are typically of a type that ...
read more
C++
Picked
STL
cpp-map
UTF-8 to Wide Char Conversion in C++ STL
Last Updated: 23 July 2025
UTF - 8 is a variable-length encoding that represents Unicode characters using 1 to 4 bytes. It’s widely used for text storage and transmission due to its compactness and ...
read more
C++
Picked
STL
cpp-string
Red Black Tree (RB-Tree) Using C++
Last Updated: 23 July 2025
A Red Black Tree is a self-balancing binary search tree where each node has an extra bit for denoting the color of the node, either red or black. This color coding is used...
read more
C++ Programs
C++
Picked
CPP-DSA
1
...
9
10
11
...
278