Top "New-operator" questions

new is a language construct that dynamically allocates memory from free store and initialises the memory using the constructor.

C++: Difference between setting a pointer to nullptr and initializing it as a new variable type

I am learning C++ and I know the 'new' key word is used to allocate an address in memory to …

c++ pointers new-operator nullptr
new operator for memory allocation on heap

I was looking at the signature of new operator. Which is: void* operator new (std::size_t size) throw (std::…

c++ memory-management new-operator operator-keyword dynamic-memory-allocation
Confused about "override" vs. "new" in C#

I'm having the following classes: class Base { public virtual void Print() { Console.WriteLine("Base"); } } class Der1 : Base { public new virtual …

c# virtual overriding new-operator
How to make div slidedown

Sorry I'm really new to JQUery and would like to know how do I make an Div Slide Down? JQuery …

javascript jquery new-operator slidedown
** is new power operator instead of power() in php

How to use new version of Power operator instead of pow() in new version of php (5.6)? Like: echo pow(2,3);

php operators new-operator php-5.6
extjs: open a new window when FormPanel submit function is used

Heya, i'm creating a Formpanel: inputForm = new Ext.FormPanel({ id:'inputForm', frame: true, closable:true, collapsible:true, renderTo:'somewhere', layout:…

extjs window submit new-operator formpanel
C++: vector<string> *args = new vector<string>(); causes SIGABRT

Pretty self explanatory. Here's the method that's causing the SIGABRT on the 'new vector' line: vector<string> * Task::…

c++ new-operator stdvector sigabrt
Why doesn't delete destroy anything?

I'm playing a little with memory dynamic allocation, but I don't get a point. When allocating some memory with the …

c++ memory new-operator delete-operator
Can multithreading speed up memory allocation?

I'm working with an 8 core processor, and am using Boost threads to run a large program. Logically, the program can …

c++ multithreading memory-management new-operator boost-thread
VIM: set filetype=txt for every new file [No Name]

I tried all possible things to let vim set filetype to 'txt' to all new files I create (in a …

vim default new-operator file-type