Posts from C++

make_heap() in C++ STL

By Gnana Prakash

The make heap() is used to create a heap from a set of given values. A heap is a tree type of data structure made up of a complete binary tree. The make_heap() is an in-built funct.... Read More

C++ String swap() with examples

By YANNAM SATYA AMRUTHA

In this article, we will go through the swap() function from the C++ standard library. A string is a variable that stores a series of characters. As we know, we can use the swap fu.... Read More

std::is_heap() and std::is_heap_until() in C++

By Siddhant Chouhan

In this tutorial, we will learn how to use the functions std::is_heap() and std::is_heap_until() in C++. You can use these functions to check whether a given list of elements is a .... Read More

std::mutex in C++

By Siddhant Chouhan

In this post, we are going to learn about std::mutex in C++. Synchronization is needed when processes need to execute concurrently i.e. for the sharing of resources with no obstruc.... Read More

Chrono Library in C++ with examples

By Siddhant Chouhan

The Chrono library in C++ is utilized to work with time operations. The Chrono library has its own namespace called “chrono“, if you want to use the chrono library firs.... Read More

std::extent() template in C++

By Siddhant Chouhan

In this post, we will learn about std::extent() template in C++. We have to use <type_traits> library which is a part of C++ STL. The std::extent() is used to find out the nu.... Read More

How to return a vector from a function in C++

By Siddhant Chouhan

In this post, we will learn how to return a vector from a function in C++. You can return a vector from a function simply by declaring the return type of your function as a vector..... Read More

3 Ways To Concatenate Strings in C++

By Khushi Aswani

This tutorial is a guide to concatenating two strings in C++ by 3 methods. There are in total many ways to do this task but today we will discuss the most useful ones. You can chec.... Read More

Related Posts