News for hackers. Stuff that matters.
Re:An Idiot's Guide to C++ Templates - Part 1 by X-Istence on Wednesday April 24, 2013 @03:29AM (#5600301)
some_big_type foo;

Now foo has been created.

Want to pass parameters to its constructor:

some_big_type foo(parameters, go, here);

foo has been initialised.

Need a pointer?

auto *foo = new some_big_type foo(parameters, go, here);

There are no comments on this comment yet.