CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 11:09:00 GMT
content-type: text/html; charset=utf-8
cf-ray: 965371397842165e-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=24178b3b-6aa0-4323-9b57-f266afe7b354; expires=Sun, 26 Jul 2026 11:08:59 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 727555eb-32fd-4ca9-8e78-71d19cd1bae8
x-worker-origin-response-time: 554000000
x-dns-prefetch-control: off
set-cookie: prov=24178b3b-6aa0-4323-9b57-f266afe7b354; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=aM5Y90yC4hpk3TvqLdDDimQP_jXEo8qPTQvLfpa3kx0-1753528140-1.0.1.1-KeM0qEniAwCGTRi7QUbPgqr3i.EzdMlAX9fDtHbYE46p8FVbS.QFgzhGDSrF7d4bYiNy8AYKu5yRN8Y9LTMxnRQjm9BwHtSY_iSuJnLpAFs; path=/; expires=Sat, 26-Jul-25 11:39:00 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=W.t7ysoJUK5otsrf6GxLwsSF6XQnvcI6rlMIrZNU_9o-1753528140326-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'c++11' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [c++11]
Code that is written to the 2011 version of the C++ standard, sometimes known by its pre-publication name of "C++0x". Use in conjunction with the 'c++' tag.
1,711 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5
votes
1
answer
383
views
Segment Tree implementation for a challenge
I have solved a typical segment-tree problem, which lets you update one single value to another in the array, or to get, from i to j, the sum of each element multiplied by an integer B to the power of ...
4
votes
2
answers
249
views
SPSC templatized lock free queue implementation and benchmarking
I have tried implemented a fast lock free Single producer single consumer queue in C++ for practicing concurrency and low level design concepts. I also benchmarked the code on x86_64 2.3GHz Intel ...
5
votes
1
answer
237
views
Result template
I'm a bit new to templates in C++ (I'm mostly a C guy) and wanted to see if I could create a result template.
What I want to know is if there are any pitfalls/oversights in my code. You can assume ...
2
votes
1
answer
79
views
Pattern matching with predicates support
TL;DR
https://godbolt.org/z/TMfb8z99h
...
8
votes
2
answers
861
views
Efficient file-copying utility using threads
The task is to implement simple 2 threaded "copy" tool.
Tool should accept 2 parameters: source filename and target filename.
Copying logic should be organized with help of 2 threads.
First ...
4
votes
4
answers
2k
views
A thread-safe simple logger
Since the vprintf is not thread-safe, so I use a std::mutex.
It's a pity that there are a lot similar macros(both name and ...
8
votes
3
answers
156
views
Generic overloading bitwise functions to manipulate the enum type
Thanks to G. Sliepen, who gave me a lot very meaningful & useful advice on my implementation about overloading bit operators for a special scoped enum.
Now I have modified the code snippet to ...
4
votes
1
answer
718
views
Using builder pattern and facade pattern in real project
The code below is used to upgrade the firmware of three different types of cameras.
I am not good at design patterns. I wonder if it is suitable to use builder pattern and facade pattern here.
Since ...
2
votes
1
answer
88
views
Overloading bit operators for scoped enum
The code snippet is used to record the status of several cameras.
Since the enum class MODULE_ENABLED should not be used by the customers directly, I marked it as <...
4
votes
2
answers
213
views
A simple text editor
I just have learned the Command Pattern carefully. I try to use this pattern to implement a simple editor.
Some code may need some improvements, say the instance of ...
4
votes
1
answer
323
views
c++ quicksort pivots
Is this code for quicksort using the first index as a pivot correct?
Also if I want to use the last or middle index as a pivot how would the whole code change?
...
5
votes
1
answer
252
views
C++ extended switch for any class
Was thinking about extending the C switch beyond integers. Here is what it came to - will gladly accept any suggestions for improvement.
Note: "Any class" in the title is not quite correct - ...
4
votes
2
answers
393
views
Class for locking shared disk directory
I'm writing an application to sync files between two directories. In order to prevent simultaneous access to the shared directory from several computers, I implemented blocking of the shared directory....
3
votes
2
answers
212
views
Multithreaded disk scan
I'm writing an application to compare and sync folders on a disks. Scanning the contents of folders is performed in separate threads. I wrote a class to manage scan threads.
The main application class ...
3
votes
1
answer
140
views
std::list reimplementation for practice
I used cppreference list to implement this simplified std::list.
The CXX_STANDARD is 11.
My questions are the usual:
Is the ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c++ × 1697
multithreading × 139
performance × 114
algorithm × 102
template × 100
pointers × 84
beginner × 81
strings × 72
linked-list × 64
c++14 × 59
memory-management × 57
object-oriented × 53
vectors × 50
game × 48
design-patterns × 45
tree × 43
boost × 40
queue × 39
graph × 37
iterator × 33
sorting × 33
lock-free × 32
more related tags
Hot Network Questions
- Lay explaination of 'lower evolutionary constraint genes'?
- How do Francophones hear "ChatGPT"?
- How should one pronounce plural French-derived German words?
- About Harp Pedaling for a Pentatonic Glissando
- Why is time reversal not a natural part of the Galilean group?
- Can authors be blacklisted by academic publishers for multiple rejections without any ethical misconduct?
- Exterior derivative of Hodge star of 1-form
- I don't have enough alive employees to start the day. What now?
- Source that Eliyahu Hanavi was an angel at the creation
- Heavy shelves, but not a center stud
- In Fantastic Four 2025 shouldn't this thing have taken years?
- Can you yaw an airplane by only using differential thrust?
- Symbols for A.P. Morse's book in Set Theory
- What does it mean to "cancel" a command in the linux kernel and how can one do so?
- Does SZNUD3160 really eliminate the need for diode?
- Is there such a thing as 'aerospace grade software'?
- Automatic drawing of polygon around selected polygons in QGIS
- Not being introduced to the team – should I ask for it?
- Did the first sin in the garden of Eden actually take place before the fruit was eaten?
- Word order for a phrase with a number, adjective and noun
- Is a chemistry-first technological paradigm as plausible as one focused on physics or biology?
- How much of a really big a spaceship could a nuke take out?
- Quadratic Hecke characters with certain given local components
- Where should a drain saddle for an RO system be installed?