Tag: c++11

1626 C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming? 2011-06-11T23:30:14.617

1516 What is a smart pointer and when should I use one? 2008-09-20T00:09:24.963

1450 What are move semantics? 2010-06-23T22:46:46.900

1388 Why should I use a pointer rather than the object itself? 2014-03-03T11:54:16.520

1259 What is a lambda expression in C++11? 2011-10-02T14:58:12.723

1161 What are rvalues, lvalues, xvalues, glvalues, and prvalues? 2010-08-30T15:02:41.630

719 What is the difference between 'typedef' and 'using' in C++11? 2012-05-25T02:39:51.960

643 What does T&& (double ampersand) mean in C++11? 2011-03-30T03:29:58.000

563 push_back vs emplace_back 2010-11-29T12:04:09.360

528 Are the days of passing const std::string & as a parameter over? 2012-04-19T15:20:57.927

504 What exactly is nullptr? 2009-08-15T16:47:32.060

463 What is std::move(), and when should it be used? 2010-08-05T09:42:46.203

460 What are Aggregates and PODs and how/why are they special? 2010-11-14T15:35:50.007

453 Iterator invalidation rules 2011-06-22T10:01:49.870

418 Difference between `constexpr` and `const` 2013-01-02T01:42:28.167

379 When should I really use noexcept? 2012-05-28T16:29:09.123

364 Advantages of using forward 2010-08-27T06:59:04.183

362 How to return an object from a function considering C++11 rvalues and move semantics? 2011-02-13T20:28:46.907

345 Pretty-print C++ STL containers 2011-01-31T11:44:25.630

334 How do I pass a unique_ptr argument to a constructor or a function? 2011-11-13T19:58:49.463

330 What is std::promise? 2012-06-12T20:23:35.380

317 C++ template typedef 2010-05-08T17:40:53.977

310 Rule-of-Three becomes Rule-of-Five with C++11? 2011-01-24T13:51:45.600

304 How to activate C++ 11 in CMake? 2012-06-01T13:31:09.937

292 Can C++ code be valid in both C++03 and C++11 but do different things? 2014-04-13T19:12:39.627

291 Compiling C++11 with g++ 2012-04-28T12:52:24.083

289 What are inline namespaces for? 2012-06-13T13:46:13.913

288 When should you use constexpr capability in C++11? 2011-01-20T14:07:06.243

284 Is it possible to print a variable's type in standard C++? 2008-09-17T10:34:44.013

283 How to use range-based for() loop with std::map? 2011-08-06T00:12:29.750

274 Returning unique_ptr from functions 2010-11-30T17:44:37.347

267 std::unique_lock<std::mutex> or std::lock_guard<std::mutex>? 2013-12-11T10:35:04.657

265 C++11 reverse range-based for-loop 2011-12-17T04:29:25.707

265 Why is list initialization (using curly braces) better than the alternatives? 2013-08-14T03:56:12.220

247 How is "int main(){(([](){})());}" valid C++? 2012-11-28T10:50:15.457

243 Why doesn't C++ have a garbage collector? 2008-09-29T00:53:20.733

242 A positive lambda: '+[]{}' - What sorcery is this? 2013-09-19T07:51:31.910

235 "unpacking" a tuple to call a matching function pointer 2011-10-22T10:19:07.217

234 std::vector performance regression when enabling C++11 2014-01-07T17:13:05.107

232 Start thread with member function 2012-05-20T12:55:19.523

222 What breaking changes are introduced in C++11? 2011-06-18T23:48:26.233

219 Which kind of pointer do I use when? 2012-01-02T22:58:38.123

219 to_string is not a member of std, says g++ (mingw) 2012-10-19T13:29:10.380

218 What is "rvalue reference for *this"? 2011-12-22T22:47:58.480

216 Can the use of C++11's 'auto' improve performance? 2015-09-10T19:30:37.707

212 make_unique and perfect forwarding 2011-08-12T09:46:23.310

211 Why does C++11's lambda require "mutable" keyword for capture-by-value, by default? 2011-03-31T15:02:52.243

210 Is std::unique_ptr<T> required to know the full definition of T? 2011-05-16T00:11:51.680

210 const vs constexpr on variables 2012-11-12T15:50:13.817

205 How to enable C++11/C++0x support in Eclipse CDT? 2012-02-03T16:13:57.597

203 Difference in make_shared and normal shared_ptr in C++ 2014-01-03T02:44:38.643

202 Should we pass a shared_ptr by reference or by value? 2010-07-22T15:48:24.393

200 Difference between angle bracket < > and double quotes " " while including header files in C++? 2010-07-01T22:07:54.590

198 How much is too much with C++11 auto keyword? 2011-06-22T04:40:41.337

197 Can modern C++ get you performance for free? 2014-12-22T01:03:48.597

193 Meaning of = delete after function declaration 2011-04-01T13:14:30.670

189 When is std::weak_ptr useful? 2012-08-19T23:00:05.107

189 Is there any use for unique_ptr with array? 2013-05-23T10:35:57.897

188 How to make my custom type to work with "range-based for loops"? 2011-11-17T09:08:34.763

185 Which C++ idioms are deprecated in C++11? 2012-02-15T18:27:42.267

183 Why does std::list::reverse have O(n) complexity? 2016-02-24T20:18:00.280

181 Which Boost features overlap with C++11? 2012-01-13T13:58:03.913

180 Is local static variable initialization thread-safe in C++11? 2011-11-12T02:34:55.290

179 Is the 'override' keyword just a check for a overridden virtual method? 2012-12-14T14:05:54.267

178 Why would I ever use push_back instead of emplace_back? 2012-06-05T02:01:45.517

177 Can lambda functions be templated? 2010-08-26T14:07:01.853

176 Differences between unique_ptr and shared_ptr 2011-07-29T17:26:00.197

174 Why use non-member begin and end functions in C++11? 2011-09-29T06:00:08.763

173 What does "default" mean after a class' function declaration? 2011-06-28T07:06:13.703

171 std::auto_ptr to std::unique_ptr 2010-08-10T16:17:45.953

169 Is the safe-bool idiom obsolete in C++11? 2011-06-05T12:01:56.493

168 What is the reason behind cbegin/cend? 2012-08-17T07:16:32.720

166 Why can I not push_back a unique_ptr into a vector? 2010-07-19T18:13:18.373

164 How can I reliably get an object's address when operator& is overloaded? 2011-06-27T14:39:04.430

164 What is this crazy C++11 syntax ==> struct : bar {} foo {};? 2011-08-15T16:36:36.303

162 C++11 range based loop: get item by value or reference to const 2013-03-02T15:25:07.383

156 How well is Unicode supported in C++11? 2013-06-14T08:09:05.273

154 Why can lambdas be better optimized by the compiler than plain functions? 2012-12-05T11:38:03.083

153 Why should I avoid std::enable_if in function signatures 2013-01-30T09:07:28.083

153 What is the correct way of using C++11's range-based for? 2013-04-10T13:19:52.183

150 What are the advantages of using nullptr? 2012-12-11T08:35:11.297

149 Undefined reference to static constexpr char[] 2011-11-04T23:11:45.040

148 How to enable C++11 in Qt Creator? 2013-06-05T19:37:49.333

147 What is the point of noreturn? 2012-05-10T16:22:25.517

147 Why should I not #include <bits/stdc++.h>? 2015-08-04T17:57:15.130

146 std::function vs template 2013-02-03T22:21:08.420

145 c++11 Return value optimization or move? 2013-07-04T15:19:09.897

144 Is it smart to replace boost::thread and boost::mutex with c++11 equivalents? 2011-08-30T10:45:27.837

144 Passing capturing lambda as function pointer 2015-02-26T15:45:23.263

140 Optimizing away a "while(1);" in C++0x 2010-08-28T21:32:02.613

140 When to use std::forward to forward arguments? 2011-08-31T12:52:47.373

140 Is there a downside to declaring variables with auto in C++? 2016-01-13T03:44:36.387

139 How do I call ::std::make_shared on a class with only protected or private constructors? 2011-11-16T05:11:36.480

139 What is the 'override' keyword in C++ used for? 2013-08-12T23:29:47.067

138 Does C++11, 14, 17 or 20 introduce a standard constant for pi? 2018-04-11T14:49:40.013

137 What's the difference between std::move and std::forward 2012-03-12T17:20:52.633

137 shared_ptr to an array : should it be used? 2012-10-25T05:13:00.033

136 What is std::decay and when it should be used? 2014-09-08T20:11:02.250

135 How do I typedef a function pointer with the C++11 using syntax? 2013-05-11T15:50:22.960