itemId
stringlengths
1
34
itemType
stringclasses
4 values
site
stringclasses
4 values
scrapedAt
timestamp[s]date
2026-08-03 00:21:25
2026-08-03 04:01:45
tagName
stringlengths
1
34
questionCount
int64
2
2.53M
hasSynonyms
bool
2 classes
isModeratorOnly
bool
1 class
isRequired
bool
1 class
link
stringlengths
32
258
_run_id
stringclasses
57 values
_dataset_id
stringclasses
57 values
questionId
int64
1
80M
title
stringlengths
15
150
score
int64
-10
35.3k
viewCount
int64
6
16.7M
answerCount
int64
0
296
isAnswered
bool
2 classes
hasAcceptedAnswer
bool
2 classes
tags
listlengths
1
6
createdAt
timestamp[s]date
2008-08-01 04:18:04
2026-08-03 03:37:34
lastActivityAt
timestamp[s]date
2008-10-30 09:20:18
2026-08-03 01:36:51
ownerDisplayName
stringlengths
3
30
isClosed
bool
2 classes
contentLicense
stringclasses
3 values
acceptedAnswerId
int64
4
80M
ownerUserId
int64
1
33M
ownerReputation
int64
1
1.53M
userId
int64
13
33M
displayName
stringclasses
897 values
reputation
int64
1
1.53M
userType
stringclasses
3 values
lastAccessAt
timestamp[s]date
2011-01-10 08:55:57
2026-08-03 03:38:13
goldBadges
int64
0
895
silverBadges
int64
0
9.32k
bronzeBadges
int64
0
9.36k
reputationChangeMonth
int64
-40
1.43k
reputationChangeYear
int64
-1,146
11.7k
websiteUrl
stringclasses
302 values
location
stringclasses
279 values
acceptRate
int64
17
100
answerId
int64
1.13k
80M
isAccepted
bool
2 classes
bodyText
stringlengths
31
24.4k
bodyHtml
stringlengths
39
34.9k
answers
listlengths
1
3
answersFetched
int64
0
3
3279543
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/3279543/what-is-the-copy-and-swap-idiom
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
3,279,543
What is the copy-and-swap idiom?
2,426
549,189
5
true
true
[ "c++", "copy-constructor", "assignment-operator", "c++-faq", "copy-and-swap" ]
2010-07-19T08:42:09
2023-10-04T08:29:37
GManNickG
false
CC BY-SA 4.0
3,279,550
87,234
507,227
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
495021
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/495021/why-can-templates-only-be-implemented-in-the-header-file
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
495,021
Why can templates only be implemented in the header file?
2,340
863,934
20
true
true
[ "c++", "templates", "undefined-reference", "c++-faq" ]
2009-01-30T10:06:50
2024-12-10T04:48:09
MainID
false
CC BY-SA 4.0
495,056
52,913
30,322
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
6319146
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/6319146/c11-introduced-a-standardized-memory-model-what-does-it-mean-and-how-is-it-g
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
6,319,146
C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?
2,233
312,252
9
true
true
[ "c++", "multithreading", "c++11", "language-lawyer", "memory-model" ]
2011-06-11T23:30:14
2026-07-27T02:54:42
Sarfaraz Nawaz
false
CC BY-SA 4.0
6,319,356
415,784
364,065
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
9371238
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/9371238/why-is-reading-lines-from-stdin-much-slower-in-c-than-python
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
9,371,238
Why is reading lines from stdin much slower in C++ than Python?
2,203
325,429
11
true
true
[ "python", "c++", "benchmarking", "iostream", "getline" ]
2012-02-21T02:17:50
2024-09-23T13:19:46
JJC
false
CC BY-SA 4.0
9,371,717
379,037
10,143
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
106508
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/106508/what-is-a-smart-pointer-and-when-should-i-use-one
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
106,508
What is a smart pointer and when should I use one?
2,196
777,451
14
true
true
[ "c++", "pointers", "c++11", "smart-pointers", "c++-faq" ]
2008-09-20T00:09:24
2026-02-09T15:48:55
Alex Reynolds
false
CC BY-SA 4.0
106,614
19,410
97,361
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
5590381
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/5590381/how-can-i-convert-int-to-string-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
5,590,381
How can I convert int to string in C++?
2,195
5,137,566
23
true
true
[ "c++", "string", "type-conversion", "integer" ]
2011-04-08T04:19:41
2025-12-03T21:52:06
SAK
false
CC BY-SA 4.0
23,855,901
490,246
25,566
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1041866
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1041866/what-is-the-effect-of-extern-c-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,041,866
What is the effect of extern "C" in C++?
2,194
1,354,762
18
true
true
[ "c++", "c", "linkage", "name-mangling", "extern-c" ]
2009-06-25T02:10:07
2024-03-15T22:07:24
Litherum
false
CC BY-SA 3.0
1,041,880
125,848
23,530
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
375913
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/375913/how-do-i-profile-c-code-running-on-linux
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
375,913
How do I profile C++ code running on Linux?
2,182
761,004
20
true
true
[ "c++", "linux", "profiling" ]
2008-12-17T20:29:24
2026-07-04T18:09:02
Gabriel Isenberg
true
null
378,024
1,473,493
26,449
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
3106110
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/3106110/what-is-move-semantics
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
3,106,110
What is move semantics?
2,146
668,851
11
true
true
[ "c++", "c++-faq", "c++11", "move-semantics" ]
2010-06-23T22:46:46
2024-05-28T12:15:58
dicroce
false
CC BY-SA 4.0
3,109,981
3,886
47,224
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
28002
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/28002/regular-cast-vs-static-cast-vs-dynamic-cast
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
28,002
Regular cast vs. static_cast vs. dynamic_cast
2,069
969,591
8
true
true
[ "c++", "pointers", "casting" ]
2008-08-26T13:20:55
2023-07-25T15:42:18
Graeme Perrow
true
null
1,255,015
1,821
57,686
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
461203
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/461203/when-to-use-virtual-destructors
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
461,203
When to use virtual destructors?
1,955
1,002,849
21
true
true
[ "c++", "polymorphism", "shared-ptr", "virtual-destructor" ]
2009-01-20T12:58:21
2024-04-16T10:57:25
Lodle
false
CC BY-SA 4.0
461,224
23,339
32,485
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
10168686
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/10168686/image-processing-algorithm-improvement-for-coca-cola-can-recognition
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
10,168,686
Image Processing: Algorithm Improvement for 'Coca-Cola Can' Recognition
1,927
254,697
23
true
true
[ "c++", "opencv", "image-processing" ]
2012-04-16T04:23:16
2026-06-28T08:02:51
Charles Menguy
false
CC BY-SA 4.0
10,169,025
1,332,690
41,638
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
22146094
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/22146094/why-should-i-use-a-pointer-rather-than-the-object-itself
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
22,146,094
Why should I use a pointer rather than the object itself?
1,915
449,957
24
true
true
[ "c++", "c++11", "pointers", "c++-faq" ]
2014-03-03T11:54:16
2024-06-06T19:24:57
Krystian Dobkowski
false
CC BY-SA 4.0
22,146,244
3,374,738
16,631
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1143262
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-and-int-const
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,143,262
What is the difference between const int*, const int * const, and int * const?
1,869
801,208
23
true
true
[ "c++", "c", "pointers", "constants", "c++-faq" ]
2009-07-17T13:28:09
2025-08-22T09:06:24
ultraman
false
CC BY-SA 4.0
1,143,272
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
12573816
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
12,573,816
What is an undefined reference/unresolved external symbol error and how do I fix it?
1,833
1,053,384
40
true
true
[ "c++", "linker-errors", "undefined-reference", "c++-faq", "unresolved-external" ]
2012-09-24T22:27:40
2024-11-13T18:26:29
Luchian Grigore
false
CC BY-SA 4.0
12,573,818
673,730
259,976
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
12135518
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/12135518/is-faster-than
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
12,135,518
Is < faster than <=?
1,786
160,754
15
true
true
[ "c++", "c", "performance", "assembly", "relational-operators" ]
2012-08-27T02:10:12
2026-01-06T05:36:38
Vinícius
false
CC BY-SA 4.0
12,135,533
1,513,286
15,816
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
7627098
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/7627098/what-is-a-lambda-expression-and-when-should-i-use-one
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
7,627,098
What is a lambda expression, and when should I use one?
1,779
718,178
11
true
true
[ "c++", "lambda", "c++11", "c++-faq" ]
2011-10-02T14:58:12
2025-08-12T10:27:49
Sarfaraz Nawaz
false
CC BY-SA 4.0
7,627,218
415,784
364,065
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
3601602
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/3601602/what-are-rvalues-lvalues-xvalues-glvalues-and-prvalues
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
3,601,602
What are rvalues, lvalues, xvalues, glvalues, and prvalues?
1,729
307,483
16
true
false
[ "c++", "c++11", "expression", "c++-faq", "value-categories" ]
2010-08-30T15:02:41
2024-11-15T07:09:24
James McNellis
false
CC BY-SA 4.0
null
151,292
357,551
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2391679
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2391679/why-do-we-need-virtual-functions-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,391,679
Why do we need virtual functions in C++?
1,694
744,091
28
true
true
[ "c++", "polymorphism", "virtual-functions" ]
2010-03-06T07:10:35
2023-09-09T10:58:02
Jake Wilson
false
CC BY-SA 4.0
2,391,781
172,350
91,903
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
9314534
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/9314534/why-does-changing-0-1f-to-0-slow-down-performance-by-10x
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
9,314,534
Why does changing 0.1f to 0 slow down performance by 10x?
1,686
173,468
7
true
true
[ "c++", "performance", "visual-studio-2010", "compilation", "floating-point" ]
2012-02-16T15:58:39
2023-03-14T07:41:43
GlassFish
false
CC BY-SA 4.0
9,314,926
1,214,219
15,109
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
25078285
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/25078285/replacing-a-32-bit-loop-counter-with-64-bit-introduces-crazy-performance-deviati
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
25,078,285
Replacing a 32-bit loop counter with 64-bit introduces crazy performance deviations with _mm_popcnt_u64 on Intel CPUs
1,659
208,999
11
true
true
[ "c++", "performance", "assembly", "x86", "compiler-optimization" ]
2014-08-01T10:33:29
2021-02-01T17:27:59
gexicide
false
CC BY-SA 4.0
25,089,720
1,408,611
40,608
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
36827659
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/36827659/compiling-an-application-for-use-in-highly-radioactive-environments
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
36,827,659
Compiling an application for use in highly radioactive environments
1,644
786,456
24
true
true
[ "c++", "c", "gcc", "embedded", "fault-tolerance" ]
2016-04-24T19:09:40
2024-10-29T11:58:45
rook
true
null
36,831,344
183,528
67,237
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
6163683
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/6163683/cycles-in-family-tree-software
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
6,163,683
Cycles in family tree software
1,585
298,855
18
true
true
[ "c++", "graph", "cycle", "assertions", "family-tree" ]
2011-05-28T18:39:28
2015-08-13T23:13:46
Partick Höse
false
CC BY-SA 3.0
6,198,257
774,578
11,101
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
610245
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/610245/where-and-why-do-i-have-to-put-the-template-and-typename-keywords
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
610,245
Where and why do I have to put the "template" and "typename" keywords?
1,423
289,364
10
true
true
[ "c++", "templates", "typename", "c++-faq", "dependent-name" ]
2009-03-04T11:56:16
2023-09-28T13:02:41
MSalters
false
CC BY-SA 4.0
613,132
15,416
182,098
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
10747810
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/10747810/what-is-the-difference-between-typedef-and-using
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
10,747,810
What is the difference between 'typedef' and 'using'?
1,329
506,222
8
true
true
[ "c++", "c++11", "typedef", "using-declaration" ]
2012-05-25T02:39:51
2025-02-17T05:13:29
Klaim
false
CC BY-SA 4.0
62,196,340
2,368
70,447
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
54585
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/54585/when-should-you-use-a-class-vs-a-struct-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
54,585
When should you use a class vs a struct in C++?
1,299
691,822
27
true
true
[ "c++", "oop", "class", "struct", "ooad" ]
2008-09-10T16:29:54
2022-12-11T00:35:29
Alan Hinchcliffe
true
null
54,596
5,436
13,280
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
860339
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/860339/what-is-the-difference-between-public-private-and-protected-inheritance
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
860,339
What is the difference between public, private, and protected inheritance?
1,296
814,447
17
true
true
[ "c++", "inheritance", "encapsulation", "access-specifier", "c++-faq" ]
2009-05-13T20:47:07
2024-03-05T14:49:16
user106599
false
CC BY-SA 4.0
860,353
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1433204
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1433204/how-do-i-use-extern-to-share-variables-between-source-files
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,433,204
How do I use extern to share variables between source files?
1,282
1,041,668
19
true
false
[ "c++", "c", "global-variables", "extern" ]
2009-09-16T14:08:40
2023-05-17T04:03:37
shilpa
false
CC BY-SA 4.0
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
4303513
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/4303513/push-back-vs-emplace-back
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
4,303,513
push_back vs emplace_back
1,244
805,306
8
true
true
[ "c++", "c++11", "std", "move-semantics" ]
2010-11-29T12:04:09
2025-02-05T07:17:42
ronag
false
CC BY-SA 4.0
4,306,581
346,804
51,757
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
146452
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/146452/what-are-pod-types-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
146,452
What are POD types in C++?
1,237
485,639
9
true
true
[ "c++", "types", "c++-faq" ]
2008-09-28T18:36:09
2023-09-09T18:29:14
oz10
true
null
146,454
14,069
160,002
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
3413470
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/3413470/what-is-stdmove-and-when-should-it-be-used
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
3,413,470
What is std::move(), and when should it be used?
1,228
689,167
9
true
true
[ "c++", "c++11", "move-semantics", "c++-faq", "stdmove" ]
2010-08-05T09:42:46
2025-11-30T23:06:46
Basilevs
false
CC BY-SA 4.0
3,413,547
125,562
24,850
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
172587
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/172587/what-is-the-difference-between-g-and-gcc
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
172,587
What is the difference between g++ and gcc?
1,217
715,144
11
true
true
[ "c++", "gcc", "g++" ]
2008-10-05T20:25:13
2024-07-06T01:36:54
Brian R. Bondy
false
CC BY-SA 4.0
172,592
3,153
349,938
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
6441218
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/6441218/can-a-local-variables-memory-be-accessed-outside-its-scope
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
6,441,218
Can a local variable's memory be accessed outside its scope?
1,176
311,489
21
true
true
[ "c++", "memory-management", "local-variables", "dangling-pointer" ]
2011-06-22T14:05:48
2024-04-02T14:12:22
Avi Shukron
false
CC BY-SA 4.0
6,445,794
548,360
6,138
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
308276
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/308276/can-i-call-a-constructor-from-another-constructor-do-constructor-chaining-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
308,276
Can I call a constructor from another constructor (do constructor chaining) in C++?
1,175
682,538
15
true
true
[ "c++", "constructor", "delegates" ]
2008-11-21T09:43:08
2023-09-17T22:42:45
Stormenet
false
CC BY-SA 4.0
308,318
2,090
26,618
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
92396
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/92396/why-cant-variables-be-declared-in-a-switch-statement
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
92,396
Why can't variables be declared in a switch statement?
1,156
419,287
23
true
true
[ "c++", "switch-statement" ]
2008-09-18T13:11:55
2022-07-17T18:15:57
Rob
false
CC BY-SA 3.0
92,439
9,236
79,298
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
5481539
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/5481539/what-does-t-double-ampersand-mean-in-c11
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
5,481,539
What does T&& (double ampersand) mean in C++11?
1,136
385,306
4
true
true
[ "c++", "c++11", "rvalue-reference", "c++-faq", "perfect-forwarding" ]
2011-03-30T03:29:58
2021-05-19T12:14:02
paxdiablo
false
CC BY-SA 3.0
5,481,588
14,860
891,117
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
620137
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/620137/do-the-parentheses-after-the-type-name-make-a-difference-with-new
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
620,137
Do the parentheses after the type name make a difference with new?
1,125
145,243
8
true
true
[ "c++", "constructor", "initialization", "new-operator", "c++-faq" ]
2009-03-06T19:39:12
2025-11-02T13:04:54
David Read
false
CC BY-SA 4.0
620,402
74,852
11,201
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
356950
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/356950/what-are-c-functors-and-their-uses
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
356,950
What are C++ functors and their uses?
1,104
634,969
14
true
true
[ "c++", "functor", "function-object", "function-call-operator" ]
2008-12-10T17:47:21
2026-02-17T20:26:34
Konrad
false
CC BY-SA 4.0
356,993
18,664
41,307
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
347949
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/347949/how-to-convert-a-stdstring-to-const-char-or-char
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
347,949
How to convert a std::string to const char* or char*
1,102
1,284,001
11
true
true
[ "c++", "string", "char", "stdstring" ]
2008-12-07T19:30:56
2023-12-20T13:06:38
user37875
false
CC BY-SA 4.0
347,959
37,875
14,374
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
228783
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
228,783
What are the rules about using an underscore in a C++ identifier?
1,081
365,142
6
true
true
[ "c++", "language-lawyer", "naming-conventions", "c++-faq" ]
2008-10-23T07:02:06
2025-11-06T21:00:17
Roger Lipscombe
false
CC BY-SA 4.0
228,797
8,446
92,814
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1410563
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1410563/what-is-the-difference-between-a-definition-and-a-declaration
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,410,563
What is the difference between a definition and a declaration?
1,076
511,751
27
true
true
[ "c++", "c", "declaration", "terminology", "c++-faq" ]
2009-09-11T12:27:12
2023-09-24T15:35:26
Maciek
false
CC BY-SA 4.0
1,410,632
142,168
20,131
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
4176328
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/4176328/what-are-sequence-points-and-how-do-they-relate-to-undefined-behavior
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
4,176,328
What are sequence points, and how do they relate to undefined behavior?
1,075
132,261
6
true
true
[ "c++", "undefined-behavior", "c++-faq", "sequence-points" ]
2010-11-14T05:37:46
2024-05-25T15:12:45
Prasoon Saurav
false
CC BY-SA 4.0
4,176,333
165,520
93,368
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
98650
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/98650/what-is-the-strict-aliasing-rule
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
98,650
What is the strict aliasing rule?
1,047
337,157
12
true
true
[ "c++", "c", "undefined-behavior", "strict-aliasing", "type-punning" ]
2008-09-19T01:30:27
2026-07-10T17:58:18
Benoit
false
CC BY-SA 4.0
99,010
10,703
39,620
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
313970
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/313970/how-to-convert-an-instance-of-stdstring-to-lower-case
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
313,970
How to convert an instance of std::string to lower case
1,041
1,491,951
32
true
true
[ "c++", "string", "std", "tolower" ]
2008-11-24T11:49:59
2025-10-29T21:54:31
Konrad
false
CC BY-SA 4.0
313,990
18,664
41,307
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
216823
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/216823/how-can-i-trim-a-stdstring
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
216,823
How can I trim a std::string?
1,037
1,115,337
52
true
false
[ "c++", "trim", "stdstring" ]
2008-10-19T19:23:07
2026-03-29T12:50:58
Milan Babuškov
false
CC BY-SA 4.0
null
14,690
61,841
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
201718
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/201718/concatenating-two-stdvectors
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
201,718
Concatenating two std::vectors
1,035
761,174
30
true
false
[ "c++", "concatenation", "std", "stdvector" ]
2008-10-14T15:46:01
2025-10-22T05:29:26
yigal
false
CC BY-SA 4.0
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
6500313
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/6500313/why-should-c-programmers-minimize-use-of-new
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
6,500,313
Why should C++ programmers minimize use of 'new'?
1,002
188,617
19
true
true
[ "c++", "memory-management", "heap-memory", "new-operator", "c++-faq" ]
2011-06-28T00:08:14
2023-12-11T19:18:34
bitgarden
false
CC BY-SA 4.0
6,500,497
429,929
10,671
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
38060436
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/38060436/what-are-the-new-features-in-c17
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
38,060,436
What are the new features in C++17?
993
255,864
1
true
true
[ "c++", "standards", "c++-faq", "c++17" ]
2016-06-27T18:06:32
2022-11-10T10:30:03
Yakk - Adam Nevraumont
false
CC BY-SA 3.0
38,060,437
1,774,667
281,365
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
612328
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/612328/difference-between-struct-and-typedef-struct-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
612,328
Difference between 'struct' and 'typedef struct' in C++?
983
688,329
7
true
true
[ "c++", "struct", "typedef" ]
2009-03-04T20:41:12
2026-02-11T08:53:00
criddell
false
CC BY-SA 4.0
612,350
47,154
14,681
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
154136
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/154136/why-use-apparently-meaningless-do-while-and-if-else-statements-in-macros
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
154,136
Why use apparently meaningless do-while and if-else statements in macros?
969
125,894
9
true
true
[ "c++", "c", "c-preprocessor", "c++-faq" ]
2008-09-30T17:36:24
2026-02-12T20:30:00
jfm3
false
CC BY-SA 4.0
154,138
11,138
38,222
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
40354978
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/40354978/why-does-c-code-for-testing-the-collatz-conjecture-run-faster-than-hand-writte
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
40,354,978
Why does C++ code for testing the Collatz conjecture run faster than hand-written assembly?
960
189,699
11
true
true
[ "c++", "performance", "assembly", "optimization", "x86" ]
2016-11-01T06:12:06
2023-11-14T19:33:26
rosghub
false
CC BY-SA 4.0
40,355,466
4,322,363
9,334
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
274626
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/274626/what-is-object-slicing
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
274,626
What is object slicing?
934
290,680
17
true
false
[ "c++", "inheritance", "c++-faq", "object-slicing" ]
2008-11-08T11:10:13
2024-04-18T02:14:59
Frankomania
false
CC BY-SA 4.0
null
35,737
9,397
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1008019
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1008019/how-do-you-implement-the-singleton-design-pattern
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,008,019
How do you implement the Singleton design pattern?
921
1,045,454
24
true
true
[ "c++", "design-patterns", "singleton" ]
2009-06-17T16:02:22
2023-09-17T10:50:32
Artem Barger
false
CC BY-SA 4.0
1,008,289
104,014
41,310
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
402283
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/402283/stdwstring-vs-stdstring
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
402,283
std::wstring VS std::string
921
452,782
14
true
false
[ "c++", "string", "unicode", "c++-faq", "wstring" ]
2008-12-31T04:08:14
2023-12-28T02:36:24
Appu
false
CC BY-SA 3.0
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
14116003
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/14116003/whats-the-difference-between-constexpr-and-const
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
14,116,003
What's the difference between constexpr and const?
919
411,010
10
true
true
[ "c++", "c++11", "constants", "constexpr" ]
2013-01-02T01:42:28
2024-01-31T09:31:24
MBZ
false
CC BY-SA 4.0
14,117,121
395,573
28,062
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
318064
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/318064/how-do-you-declare-an-interface-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
318,064
How do you declare an interface in C++?
907
655,432
18
true
true
[ "c++", "inheritance", "interface", "abstract-class", "pure-virtual" ]
2008-11-25T16:48:47
2025-09-15T07:29:46
Aaron Fischer
false
CC BY-SA 2.5
318,137
5,618
21,295
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2346806
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2346806/what-is-a-segmentation-fault
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,346,806
What is a segmentation fault?
906
1,152,827
17
true
true
[ "c++", "c", "segmentation-fault" ]
2010-02-27T09:23:14
2026-04-16T04:21:01
Rajendra Uppal
false
CC BY-SA 3.0
2,346,849
277,734
20,212
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
4184468
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/4184468/sleep-for-milliseconds
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
4,184,468
Sleep for milliseconds
898
1,977,391
18
true
true
[ "c++", "linux", "sleep" ]
2010-11-15T12:49:51
2024-04-22T12:46:08
Prasanth Madhavan
false
CC BY-SA 3.0
4,184,493
496,864
13,507
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
16699247
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/16699247/what-does-it-mean-for-code-to-be-cache-friendly
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
16,699,247
What does it mean for code to be "cache-friendly"?
895
226,897
10
true
true
[ "c++", "performance", "caching", "memory", "cpu-cache" ]
2013-05-22T18:37:01
2026-01-17T17:56:05
Noah Roth
false
CC BY-SA 4.0
16,699,282
1,245,800
9,320
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
120876
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/120876/what-are-the-rules-for-calling-the-base-class-constructor
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
120,876
What are the rules for calling the base class constructor?
895
1,139,544
10
true
true
[ "c++", "inheritance", "constructor" ]
2008-09-23T13:09:20
2021-04-04T17:47:07
levik
false
CC BY-SA 4.0
120,916
4,465
118,275
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
751681
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/751681/what-is-the-meaning-of-const-at-the-end-of-a-member-function-declaration
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
751,681
What is the meaning of 'const' at the end of a member function declaration?
892
359,910
12
true
false
[ "c++", "declaration", "member-functions", "c++-faq", "function-qualifier" ]
2009-04-15T13:27:37
2023-09-23T08:07:46
user91111
false
CC BY-SA 4.0
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
119123
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/119123/why-isnt-sizeof-for-a-struct-equal-to-the-sum-of-sizeof-of-each-member
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
119,123
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
883
312,905
13
true
true
[ "c++", "c", "struct", "sizeof", "c++-faq" ]
2008-09-23T04:24:47
2022-04-26T07:39:19
Kevin
false
CC BY-SA 4.0
119,128
6,386
26,287
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2551775
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2551775/appending-a-vector-to-a-vector
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,551,775
Appending a vector to a vector
878
1,091,891
4
true
false
[ "c++", "stl", "stdvector" ]
2010-03-31T09:33:02
2024-02-24T19:39:13
sub
true
null
null
305,870
8,831
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
204476
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/204476/what-should-main-return-in-c-and-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
204,476
What should main() return in C and C++?
857
486,622
19
true
true
[ "c++", "c", "return-value", "program-entry-point", "return-type" ]
2008-10-15T12:13:48
2025-02-15T19:14:08
Joel
false
CC BY-SA 4.0
204,483
25,632
15,666
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
571394
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/571394/how-to-find-out-if-an-item-is-present-in-a-stdvector
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
571,394
How to find out if an item is present in a std::vector?
851
1,653,995
21
true
true
[ "c++", "std", "stdvector" ]
2009-02-20T21:58:41
2024-09-11T12:08:45
Joan Venge
false
CC BY-SA 4.0
571,405
51,816
334,709
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
103512
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/103512/why-use-static-casttx-instead-of-tx-or-tx
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
103,512
Why use static_cast<T>(x) instead of (T)x or T(x)?
850
458,430
9
true
true
[ "c++", "casting", "static-cast" ]
2008-09-19T16:33:58
2025-12-28T01:12:00
Tommy Herbert
false
CC BY-SA 4.0
103,868
11,575
21,181
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
7663709
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/7663709/how-can-i-convert-a-stdstring-to-int
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
7,663,709
How can I convert a std::string to int?
832
2,371,992
22
true
true
[ "c++", "string", "integer" ]
2011-10-05T15:23:45
2026-05-10T00:06:53
Brandon
false
CC BY-SA 4.0
7,664,227
903,283
8,505
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
612097
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/612097/how-can-i-get-the-list-of-files-in-a-directory-using-c-or-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
612,097
How can I get the list of files in a directory using C or C++?
830
1,397,334
33
true
true
[ "c++", "c", "file", "directory" ]
2009-03-04T19:35:58
2023-07-25T23:37:48
foobarfuzzbizz
false
CC BY-SA 4.0
612,176
39,036
59,213
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
357307
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/357307/how-to-call-a-parent-class-function-from-derived-class-function
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
357,307
How to call a parent class function from derived class function?
811
1,047,048
9
true
true
[ "c++", "oop", "inheritance" ]
2008-12-10T19:35:45
2024-01-09T19:23:09
IaCoder
false
CC BY-SA 3.0
357,380
17,337
12,850
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
7868936
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/7868936/read-file-line-by-line-using-ifstream-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
7,868,936
Read file line by line using ifstream in C++
807
2,040,770
8
true
true
[ "c++", "file-io", "ofstream" ]
2011-10-23T20:24:31
2025-11-30T22:09:44
dukevin
false
CC BY-SA 4.0
7,868,998
255,439
23,406
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
12264970
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/12264970/why-is-my-program-slow-when-looping-over-exactly-8192-elements
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
12,264,970
Why is my program slow when looping over exactly 8192 elements?
806
100,725
2
true
true
[ "c++", "performance", "memory-management", "gcc" ]
2012-09-04T13:51:31
2017-10-11T12:08:18
anon
false
CC BY-SA 3.0
12,265,928
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2023977
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2023977/what-is-the-difference-between-typename-and-class-template-parameters
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,023,977
What is the difference between "typename" and "class" template parameters?
802
338,925
6
true
true
[ "c++", "templates", "keyword" ]
2010-01-07T21:59:41
2023-09-23T10:08:47
Mat
false
CC BY-SA 4.0
2,024,173
127,213
11,961
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
3141087
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/3141087/what-is-meant-with-const-at-end-of-function-declaration
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
3,141,087
What is meant with "const" at end of function declaration?
798
775,295
6
true
true
[ "c++", "constants", "function-qualifier" ]
2010-06-29T13:31:02
2023-09-23T08:10:07
aPoC
true
null
3,141,107
359,131
8,051
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1759300
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1759300/when-should-i-write-the-keyword-inline-for-a-function-method
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,759,300
When should I write the keyword 'inline' for a function/method?
798
248,433
16
true
true
[ "c++", "inline", "one-definition-rule", "inline-functions" ]
2009-11-18T21:46:00
2023-09-25T22:52:05
Partial
false
CC BY-SA 4.0
1,759,575
127,716
10,139
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
191757
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/191757/how-to-concatenate-a-stdstring-and-an-int
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
191,757
How to concatenate a std::string and an int
795
872,237
25
true
false
[ "c++", "integer", "concatenation", "stdstring" ]
2008-10-10T15:05:05
2024-01-01T18:24:25
Obediah Stane
false
CC BY-SA 4.0
null
23,120
16,089
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
152555
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/152555/h-or-hpp-for-your-c-headers-class-definitions
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
152,555
*.h or *.hpp for your C++ headers / class definitions
793
551,413
22
true
true
[ "c++", "header", "naming-conventions", "file-type" ]
2008-09-30T10:47:16
2025-10-22T15:39:54
Mark Ingram
true
null
152,671
986
74,211
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2340281
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2340281/check-if-a-string-contains-a-string-in-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,340,281
Check if a string contains a string in C++
791
1,551,146
16
true
true
[ "c++", "string", "substring" ]
2010-02-26T08:19:15
2025-01-11T13:36:45
neuromancer
false
CC BY-SA 4.0
2,340,309
209,512
56,059
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
63166
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
63,166
How to determine CPU and memory consumption from inside a process
785
483,695
10
true
false
[ "c++", "c", "memory", "cpu" ]
2008-09-15T14:04:43
2023-09-26T06:43:24
Lanzelot
false
CC BY-SA 4.0
null
7,381
16,695
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1545080
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1545080/c-code-file-extension-what-is-the-difference-between-cc-and-cpp
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,545,080
C++ code file extension? What is the difference between .cc and .cpp
782
612,080
17
true
true
[ "c++", "filenames" ]
2009-10-09T17:23:18
2023-10-11T19:55:18
Jessica
true
null
1,545,085
178,133
1,469
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
18335861
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/18335861/why-is-enum-class-considered-safer-to-use-than-plain-enum
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
18,335,861
Why is enum class considered safer to use than plain enum?
774
561,047
9
true
true
[ "c++", "enums", "type-safety", "enum-class", "c++-faq" ]
2013-08-20T13:06:13
2025-10-03T09:38:43
Oleksiy
false
CC BY-SA 4.0
18,335,862
1,367,392
40,527
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
10787766
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/10787766/when-should-i-really-use-noexcept
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
10,787,766
When should I really use noexcept?
773
261,410
10
true
true
[ "c++", "c++11", "exception", "noexcept" ]
2012-05-28T16:29:09
2025-08-15T17:08:53
void-pointer
false
CC BY-SA 4.0
10,788,136
414,271
15,127
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
589575
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/589575/what-does-the-c-standard-say-about-the-size-of-int-long
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
589,575
What does the C++ standard say about the size of int, long?
765
1,395,758
18
true
false
[ "c++", "integer", "language-lawyer", "long-integer", "c++-faq" ]
2009-02-26T07:59:23
2026-04-21T13:56:41
Jérôme
false
CC BY-SA 4.0
null
2,796
27,227
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
875103
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/875103/how-do-i-erase-an-element-from-stdvector-by-index
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
875,103
How do I erase an element from std::vector<> by index?
761
1,399,604
16
true
true
[ "c++", "stl", "stdvector", "erase" ]
2009-05-17T17:59:36
2024-02-27T17:38:29
dau_man
false
CC BY-SA 4.0
875,109
108,466
7,629
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
1653958
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/1653958/why-are-ifndef-and-define-used-in-c-header-files
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
1,653,958
Why are #ifndef and #define used in C++ header files?
758
796,139
5
true
true
[ "c++", "c", "c-preprocessor" ]
2009-10-31T10:06:34
2023-11-15T19:41:26
Asad Khan
false
CC BY-SA 4.0
1,653,965
197,688
11,989
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
199333
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/199333/how-do-i-detect-unsigned-integer-overflow
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
199,333
How do I detect unsigned integer overflow?
758
493,363
30
true
false
[ "c++", "c", "integer-overflow" ]
2008-10-13T22:53:21
2026-05-22T15:51:50
Chris Johnson
false
CC BY-SA 4.0
null
23,732
10,800
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
115703
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/115703/storing-c-template-function-definitions-in-a-cpp-file
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
115,703
Storing C++ template function definitions in a .CPP file
749
651,646
14
true
true
[ "c++", "templates" ]
2008-09-22T15:55:52
2024-03-14T06:00:59
Rob
false
CC BY-SA 2.5
115,735
9,236
79,298
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
213907
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/213907/stdendl-vs-n
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
213,907
"std::endl" vs "\n"
743
308,898
12
true
true
[ "c++", "iostream", "c++-faq" ]
2008-10-17T21:25:17
2024-07-29T14:09:41
Head Geek
false
CC BY-SA 4.0
213,977
12,193
40,316
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2602013
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2602013/read-whole-ascii-file-into-c-stdstring
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,602,013
Read whole ASCII file into C++ std::string
741
886,317
9
true
true
[ "c++", "string", "caching", "file-io", "standard-library" ]
2010-04-08T17:19:49
2025-03-05T14:37:23
Escualo
true
CC BY-SA 3.0
2,602,060
104,427
42,600
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2236197
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2236197/what-is-the-easiest-way-to-initialize-a-stdvector-with-hardcoded-elements
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,236,197
What is the easiest way to initialize a std::vector with hardcoded elements?
741
1,254,624
29
true
true
[ "c++", "vector", "initialization", "std", "stdvector" ]
2010-02-10T10:55:33
2023-12-18T19:40:58
Agnel Kurian
false
CC BY-SA 4.0
2,236,227
45,603
60,094
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
3024197
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/3024197/what-does-int-argc-char-argv-mean
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
3,024,197
What does int argc, char *argv[] mean?
735
1,454,135
11
true
true
[ "c++", "parameters", "command-line-arguments", "argv", "argc" ]
2010-06-11T15:45:43
2025-10-10T19:35:19
Greg Treleaven
false
CC BY-SA 4.0
3,024,202
361,590
8,604
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
14265581
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/14265581/parse-split-a-string-in-c-using-string-delimiter-standard-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
14,265,581
Parse (split) a string in C++ using string delimiter (standard C++)
729
2,525,670
35
true
true
[ "c++", "parsing", "split", "token", "tokenize" ]
2013-01-10T19:16:43
2026-03-27T09:11:48
TheCrazyProgrammer
false
CC BY-SA 4.0
14,266,139
1,214,064
8,906
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
12887700
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/12887700/can-code-that-is-valid-in-both-c-and-c-produce-different-behavior-when-compile
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
12,887,700
Can code that is valid in both C and C++ produce different behavior when compiled in each language?
726
54,701
20
true
true
[ "c++", "c" ]
2012-10-14T23:54:26
2025-12-10T17:22:13
user541686
false
CC BY-SA 3.0
12,887,719
541,686
213,325
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
154469
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/154469/why-should-you-prefer-unnamed-namespaces-over-static-functions
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
154,469
Why should you prefer unnamed namespaces over static functions?
718
372,445
11
true
true
[ "c++", "static", "namespaces", "unnamed-namespace" ]
2008-09-30T19:02:00
2023-09-26T08:35:41
Head Geek
false
CC BY-SA 4.0
154,482
12,193
40,316
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
4178175
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/4178175/what-are-aggregates-and-trivial-types-pods-and-how-why-are-they-special
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
4,178,175
What are aggregates and trivial types/PODs, and how/why are they special?
714
233,582
6
true
false
[ "c++", "c++11", "aggregate", "c++17", "standard-layout" ]
2010-11-14T15:35:50
2024-08-06T06:42:38
Armen Tsirunyan
false
CC BY-SA 4.0
null
469,935
133,939
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
2649334
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/2649334/difference-between-static-and-shared-libraries
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
2,649,334
Difference between static and shared libraries?
713
331,092
9
true
true
[ "c++", "c", "shared-libraries", "static-libraries" ]
2010-04-15T22:08:01
2024-11-15T15:19:44
Mohit Deshpande
false
CC BY-SA 3.0
2,649,430
200,477
55,597
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
4955198
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/4955198/what-does-dereferencing-a-pointer-mean-in-c-c
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
4,955,198
What does 'dereferencing' a pointer mean in C/C++?
712
862,325
6
true
true
[ "c++", "c", "pointers", "dereference", "c++-faq" ]
2011-02-10T09:16:22
2023-03-30T14:25:51
asir
false
CC BY-SA 4.0
4,955,297
606,344
13,591
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
553682
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/553682/when-can-i-use-a-forward-declaration
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
553,682
When can I use a forward declaration?
709
324,978
13
true
true
[ "c++", "forward-declaration", "c++-faq" ]
2009-02-16T15:31:06
2023-04-10T15:28:27
Igor
false
CC BY-SA 3.0
553,869
44,673
27,436
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
77005
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/77005/how-to-automatically-generate-a-stacktrace-when-my-program-crashes
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
77,005
How to automatically generate a stacktrace when my program crashes
707
536,565
31
true
true
[ "c++", "gcc", "crash", "stack-trace", "assert" ]
2008-09-16T20:58:35
2024-04-09T10:07:43
KPexEA
false
CC BY-SA 4.0
77,336
13,676
16,858
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
8389648
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/8389648/how-do-i-achieve-the-theoretical-maximum-of-4-flops-per-cycle
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
8,389,648
How do I achieve the theoretical maximum of 4 FLOPs per cycle?
704
93,607
4
true
true
[ "c++", "assembly", "x86-64", "cpu-architecture", "flops" ]
2011-12-05T17:54:56
2023-01-08T01:50:33
user1059432
false
CC BY-SA 4.0
8,391,601
1,059,432
7,628
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
4108313
question
stackoverflow
2026-08-03T04:01:45
null
null
null
null
null
https://stackoverflow.com/questions/4108313/how-do-i-find-the-length-of-an-array
lgjiEegKajFN5MBO4
QtRCmyYmUwEdBhl8K
4,108,313
How do I find the length of an array?
704
2,060,920
31
true
true
[ "c++", "arrays" ]
2010-11-05T17:15:54
2024-08-22T09:40:22
Maxpm
false
CC BY-SA 3.0
4,108,340
497,934
26,131
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null