Skip to main content

Questions tagged [c++]

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. This tag should be used for any question which requires knowledge or expertise with the C++ programming language. This is a general tag which is used for any of the C++ language standards (C++98, C++11, C++17, etc.). The question should identify the compiler being used, the operating system, and which of the C++ standards is being targeted.

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
-4 votes
0 answers
54 views

I'm fairly new to C++, and I'm trying to improve my skills. I'd appreciate it if you could take a look at my project and share any feedback or suggestions. It's a small database implementation written ...
user483882's user avatar
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
6 votes
2 answers
500 views

I never remember without looking how to write RB or AVL balancing. but I wanted to make sure I would be able to still write a reasonable dynamically balanced binary tree. If it is asked of me in ...
Ralender's user avatar
6 votes
4 answers
774 views

First C++ project: write a hash set for a specific scenario where I only need inserts and containment checks. This is not AI slop, everything except for the avalanche function is hand written. Please ...
Bananach's user avatar
  • 191
3 votes
0 answers
80 views

I originally titled my last question as a Unit Test and there was a comment that it was a integration test rather than a unit test. I will say this, indi that comment was an answer and you could have ...
pacmaninbw's user avatar
  • 26.2k
6 votes
1 answer
353 views

I've written a MQTT client for embedded system with RTOS (understand not POSIX, generally FreeRTOS). There's no pthread in the system. There's only 32 bits atomic instructions supported. The client ...
xryl669's user avatar
  • 163
10 votes
2 answers
414 views

This is a follow-up question for SIFT Keypoint Detection for Image in C++. With the detected SIFT keypoints of images, image stitching is possible to perform. In this post, the first step is to ...
JimmyHu's user avatar
  • 7,575
4 votes
2 answers
155 views

I need to write code that contains a lot of checks for sequences in a list of the form: ...
adrianton3's user avatar
11 votes
4 answers
1k views

I'm building this code for my students, so I'd like any comments about modern C++ and whether it is pedagogic. And of course if you find any logic error. Basic exercise is to count word frequency in a ...
Yann TM's user avatar
  • 243
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
2 votes
1 answer
92 views

I was recently working on my CUDA wrappers library, and this particular class is one of the oldest pieces of code in the entire project. Since that time, I added tons of other features (for example <...
NeKon's user avatar
  • 641
4 votes
0 answers
107 views

As noted by @TobySpeight in his answer to Polymorphic data models that save data to MySQL and restore data from MySQL the test code should also be reviewed. His ...
pacmaninbw's user avatar
  • 26.2k
12 votes
1 answer
799 views

When I discovered that CUDA device memory was represented by plain old void* I was horrified by having to deal with C-style type safety and resource ownership (i.e. ...
Toby Speight's user avatar
  • 88.7k

15 30 50 per page
1
2 3 4 5
652