CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 16:20:55 GMT
content-type: text/html; charset=utf-8
cf-ray: 96553a206b62dfa6-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=5ae3b23b-3b53-439b-a763-9a466d83cfe2; expires=Sun, 26 Jul 2026 16:20:54 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: 85bf8864-432d-4dc7-ac57-e43bc21dbded
x-worker-origin-response-time: 676000000
x-dns-prefetch-control: off
set-cookie: prov=5ae3b23b-3b53-439b-a763-9a466d83cfe2; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=iTMbyv3foxnZ6I57MJ5zTIQzpCHIN2rtl6TOiQyvioY-1753546855-1.0.1.1-gHxLDvzL4Ac6LIqS7brGKo0aQqvRegQqSpWSq.iWbQYS8wGp7o6HCdOdlFRp.la.n_PyASF18_yfZNGWj.R2_5Id_DBbUnnlE96IjCT1BqY; path=/; expires=Sat, 26-Jul-25 16:50:55 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=qb_L1qXvYbh5.ngL06sbdNv18HIz6RZNSAlGDhqg55E-1753546855168-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'c++20' 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++20]
Code that is written to the 2020 version of the C++ standard. Use in conjunction with the 'c++' tag.
354 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
55
views
generate_complex_image Template Function Implementation for Image in C++
This is a follow-up question for Tests for the operators of image template class in C++, Image pixelwise operation function with multiple inputs in C++ and An Updated Multi-dimensional Image Data ...
5
votes
2
answers
134
views
N-dimensional bilateral_filter Template Function Implementation for Image in C++
This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++ and bilateral_filter Template Function Implementation for Image in C++. The N-...
2
votes
1
answer
177
views
6
votes
2
answers
536
views
Shared_ptr-like solution to prolong the object's lifetime
I'm trying to implement something similar to shared_ptr except that the object is does not need to be allocated on the heap. Basically all the devices are populated ...
14
votes
5
answers
3k
views
Infinite precision integer in C++20
This is my infinite precision integer implemented in C++20. It supports negative numbers. I have implemented addition, subtraction, multiplication and binary integer division, which returns quotient ...
4
votes
1
answer
62
views
Timer coroutine
I was trying to learn more about C++ 20 coroutines. After trying to read the documentation and watching few videos, I tried to write a timer that uses coroutines.
...
5
votes
3
answers
223
views
Sieve of Eratosthenes with Wheel Factorization in C++ version 2
I have implemented Sieve of Eratosthenes with Wheel Factorization in C++ again, this time using a bigger wheel and much more complicated C++ syntax, to familiarize myself with C++ and see how fast I ...
9
votes
2
answers
362
views
Simple LRU cache implementations in C++20
LRU cache is a classical design pattern frequently questioned in programming technical interviews. It is best illustrated with pictures. Here are two examples.
The following are two alternative ...
10
votes
3
answers
2k
views
C++ std::optional implementation for tech interview
I'm preparing for entry-level C++ developer interview and decided to implement some of std:: members. Here's my implementation of std::optional. I would be grateful ...
9
votes
4
answers
1k
views
C++20 Singly Linked List with Iterator
Below is the code I wrote to implement a singly linked list. To keep things simple, I omitted things like copy constructor. Aside from general feedback, here are some specifics I would like addressed:
...
10
votes
4
answers
1k
views
Linear version of std::bit_ceil that computes the smallest power of 2 that is no smaller than the input integer
I am not looking for feedback on the algorithm itself, but rather on the implementation; things like modern C++20 writing, style, proper ways to test and handle the validity of input (should I be ...
4
votes
2
answers
416
views
Arena/Region Allocator in C++ (rev 2)
2nd revision of original post: Arena/Region Allocator in C++
Context, changes
Trying to get a better grasp on low-level memory management, I implemented an arena allocator in C++. It's a rough ...
4
votes
1
answer
87
views
Implementation of semantically safe interface for `std::future::then`
Disclaimer:
I am not a fan of the then concept, specifically as a mutating non-static member function. As of now, it has only been introduced as part of the ...
8
votes
1
answer
378
views
SIMD Softmax implementation
I am learning SIMD and looking for feedback. This is column-wise Softmax for matrices stored in row-major format.
Note that matrices come from outside so padding or dimensions being power of 2 can't ...
6
votes
1
answer
781
views
C++20 Robust File Interface
I'm working on a homebrew game engine in C++20. I needed a robust, minimal-overhead, and easy way to load files into memory. I ended up with this: a simple, easy file loader. It doesn't have many ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c++ × 345
recursion × 67
template × 58
performance × 27
algorithm × 24
lambda × 20
multithreading × 18
image × 17
boost × 14
beginner × 11
c++17 × 10
matrix × 10
collections × 9
concurrency × 9
strings × 9
array × 8
coroutines × 7
callback × 6
file-system × 6
error-handling × 6
thread-safety × 6
more related tags
Hot Network Questions
- Inequality for partitions
- Balancing a Holy Water Bomb
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- About Harp Pedaling for a Pentatonic Glissando
- leftmargin in enumerate
- How can I allow a contact to update their organisation using FormBuilder?
- How many simple groups are there of a given infinite cardinality?
- Heavy shelves, but not a center stud
- Is there any verse which says that throughout the Vedas the praise of Shiva is sung?
- How to navigate in the Universe's Heat Death
- Lay explaination of 'lower evolutionary constraint genes'?
- What part of speech is "the way?"
- How might a near-future spacecraft be protected from the Sun when half as far from it as Earth?
- Anonymizing a submission for double-blind review
- Word order for a phrase with a number, adjective and noun
- Automatic drawing of polygon around selected polygons in QGIS
- Access denied attempting to delete file on Windows Server
- Can a minor run a business by having an adult act on their behalf?
- Is it okay to email researchers if I’m just a high school student?
- In Fantastic Four 2025 shouldn't this thing have taken years?
- Rename a file geodatabase field alias using QGIS
- spots / stains on tubeless tire
- Heretofore I think I have been using 'heretofore' incorrectly
- Can authors be blacklisted by academic publishers for multiple rejections without any ethical misconduct?