Skip to main content

Questions tagged [c++20]

Code that is written to the 2020 version of the C++ standard. Use in conjunction with the 'c++' tag.

5 votes
2 answers
351 views

I'm implementing a MinMaxStack<T> in C++20 that tracks minimum and maximum values. The class needs T to support ...
sam's user avatar
  • 503
7 votes
3 answers
803 views

I’m implementing a templated LRU cache in C++17 and C++20. High-level design: Recency: ...
sam's user avatar
  • 503
4 votes
2 answers
627 views

I wrote a simple reference counted smart pointer. The reference count is supposed to be inside the object it owns (not the smart ptr itself, like std::shared_ptr) ...
Raildex's user avatar
  • 283
2 votes
2 answers
196 views

Consider the following (C++20) function (from the solution to this StackOverflow question): ...
einpoklum's user avatar
  • 2,099
7 votes
1 answer
265 views

I've implemented a resource management class for CUDA interop using RAII to ensure exception safety. The goal is to handle the registration/unregistration and mapping/unmapping, of graphics resources (...
NeKon's user avatar
  • 641
1 vote
0 answers
94 views

This is some kind of follow up to my previous question, this question will be more focused on the actual tessellating pipeline. What I changed from previous question Implemented the async sphere ...
NeKon's user avatar
  • 641
5 votes
5 answers
1k views

I was concatenating a lot of strings lately, usually the results of std::format: ...
dalle's user avatar
  • 309
10 votes
3 answers
1k views

I’d appreciate a review of this small DNS cache. It stores pairs of domain and IP address and uses a std::shared_mutex because reads are frequent and writes are ...
sam's user avatar
  • 503
1 vote
0 answers
80 views

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 ...
JimmyHu's user avatar
  • 7,575
5 votes
2 answers
162 views

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-...
JimmyHu's user avatar
  • 7,575
2 votes
1 answer
237 views

I've developed a coroutine library for C++ that is contained within a single header file. It is compatible with both Windows and Linux platforms. This library is not multi-threaded; instead, it is ...
Pangi's user avatar
  • 370
6 votes
2 answers
599 views

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 ...
bielu000's user avatar
  • 290
13 votes
5 answers
3k views

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 ...
Ξένη Γήινος's user avatar
4 votes
1 answer
94 views

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. ...
kiner_shah's user avatar
5 votes
3 answers
254 views

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 ...
Ξένη Γήινος's user avatar

15 30 50 per page
1
2 3 4 5
25