Get a block of temporary memory. In C++ STL library, there is a function get_temporary_buffer which is mostly used... 24 May std::get_temporary_buffer in C++ | cpp | 0 Get a block of temporary memory. In C++ STL library, there is a function get_temporary_buffer which is mostly used...
In C++, delete operator should only be used either for the pointers pointing to the memory allocated using new... 24 May delete and free() in C++ | cpp | 0 In C++, delete operator should only be used either for the pointers pointing to the memory allocated using new...
Following are the differences between malloc() and operator new.: Calling Constructors: new calls constructors, while malloc() does not. In... 24 May malloc() vs new | cpp | 0 Following are the differences between malloc() and operator new.: Calling Constructors: new calls constructors, while malloc() does not. In...
Ideally delete operator should not be used for this pointer. However, if used, then following points must be considered.... 24 May “delete this” in C++ | cpp | 0 Ideally delete operator should not be used for this pointer. However, if used, then following points must be considered....
In C++, this pointer is passed as a hidden argument to all non-static member function calls. The type of... 24 May Type of ‘this’ pointer in C++ | cpp | 0 In C++, this pointer is passed as a hidden argument to all non-static member function calls. The type of...
To understand ‘this’ pointer, it is important to know how objects look at functions and data members of a... 24 May ‘this’ pointer in C++ | cpp | 0 To understand ‘this’ pointer, it is important to know how objects look at functions and data members of a...
Things to learn in this article: Importance of pointer in C/C++. Problems with normal pointer. Why smart pointers introduce.... 24 May Introduction of Smart Pointers in C++ and It’s Types | cpp | 0 Things to learn in this article: Importance of pointer in C/C++. Problems with normal pointer. Why smart pointers introduce....
In C++, variables are passed by reference due to following reasons: 1) To modify local variables of the caller... 24 May When do we pass arguments by reference or pointer? | cpp | 0 In C++, variables are passed by reference due to following reasons: 1) To modify local variables of the caller...
In C++, Reference variables are safer than pointers because reference variables must be initialized and they cannot be changed... 24 May Can references refer to invalid location in C++? | cpp | 0 In C++, Reference variables are safer than pointers because reference variables must be initialized and they cannot be changed...
What is an opaque pointer? Opaque as the name suggests is something we can’t see through. e.g. wood is... 24 May Opaque Pointer | cpp | 0 What is an opaque pointer? Opaque as the name suggests is something we can’t see through. e.g. wood is...