We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: internally

How virtual functions works internally using vTable and vPointer?

vPointer and vTable for MessageConverter class

In this article we will discuss that how virtual functions in C++ works internally using vTable and vPointer. If you are not clear on what is virtual function and in which scenarios we need them, then we suggest you to go through this article first, Advertisements https://ownyourlife.com.ng//when-should-i-use-virtual-functions-in-c/ virtual functions is based on run time binding. So, let’s …

How virtual functions works internally using vTable and vPointer?Read More

How does std::vector works internally ?

std::vector allocates a memory on heap and store all its elements in contiguous memory location. But what if memory it allocated initially is completely filled? For example, let’s create a vector of ints i.e. std::vector<int> . Now suppose it’s initial capacity is to store 10 elements, but in our application we want to store 15 …

How does std::vector works internally ?Read More

What is std::deque and how deque works internally.

deque

In this article we will discuss what is a deque and how it works internally. Deque is a double ended queue container that provides insertion and deletion at both ends i.e. front and back with high performance unlike vector that provides high performance insertion at end i.e. back only. Advertisements [showads ad=inside_post] Also it provides …

What is std::deque and how deque works internally.Read More

How does new and delete operator works internally ?

In this article we will discuss how new and delete operator works internally in C++.new operator is used to dynamically allocate memory on heap and delete operator is used to delete the memory from the heap allocated by new operator. Usage example of new and delete operator is as follows, #include <iostream> class Sample { …

How does new and delete operator works internally ?Read More

Cart

Your Cart is Empty

Back To Shop