Posts by Vidhi Jain

Author Biographical Info: Not available

consteval specifier in C++

By Vidhi Jain

Hello folks! Today, we will discuss consteval specifier in C++. Consteval specifier declares an immediate function to produce constant. This means that every potentially evaluated .... Read More

Implement a Line Filter by Using Ranges in C++

By Vidhi Jain

Let’s talk about filtering lines in C++. We can filter lines in the file by some characters present in it. Here, we use library Ranges for filtering the lines if certain word.... Read More

Understanding constexpr specifier in C++

By Vidhi Jain

Let’s discuss constexpr specifier in C++. We use them to evaluate the value of the functions and variables at compile-time, and hence we save time at run time. The expression.... Read More

list::splice in C++ with examples

By Vidhi Jain

Here we will learn about the function list::splice in C++, which is used to transfer elements from one list to another. list::splice is an inbuilt function in the Standard temporar.... Read More

Quickly find multiple left rotations of an array using C++

By Vidhi Jain

The multiple left rotations mean rotating an array n number of times. For eg: array: 1,2,3,4,5 rotating 3 times: 4 5 1 2 3 C++ Code for multiple left rotations For having multiple .... Read More

boost is_pointer template in C++

By Vidhi Jain

Let’s talk about boost is_pointer in C++. The is_pointer template of the boost library. It tells if the given type is a pointer or not. It returns the value in boolean. Heade.... Read More

std::next_permutation and std::prev_permutation in C++

By Vidhi Jain

Let’s learn about std::next_permutation and  std::prev_permutation in C++. Let’s first know about permutations: We know that a permutation is the n! possible arrangeme.... Read More

How to use std::normal_distribution in C++

By Vidhi Jain

In this tutorial, will learn about the normal distribution class in C++. Header file used: <random.h> We use it to generate random numbers according to the Normal random numb.... Read More