Questions tagged [c++17]
Code that is written to the 2017 version of the C++ standard. Use in conjunction with the 'c++' tag.
597 questions
-4
votes
0
answers
54
views
Feedback on small C++ database project [closed]
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 ...
4
votes
2
answers
126
views
Implementing views and slicing for arbitrarily nested `std::vector`s in a header-only library
I implemented a templated vector_view class that holds a reference to an std::vector and provides the following operations:
...
9
votes
2
answers
861
views
My shared_ptr implementation
I would like to ask for a code review of my shared_ptr<T> implementation for design, code style. Any nitpicks will extremely useful for me. The features ...
6
votes
3
answers
1k
views
Game Design Patterns Command implementation
I started reading the GameProgrammingPatterns book and wanted to implement the command pattern.
...
7
votes
1
answer
779
views
JSON powered C++ CLI Engine
I decided to create cli(s) in C++. For instance a music player which will play music from my library via commands player play muse or ...
5
votes
2
answers
156
views
First game in C++ Snake2d
I decided to dig into game programming, and here is my first C++ project snake2d game.
Please review it. I've used X11 for Linux and Win32 API for Windows build. For graphics and rendering part I've ...
5
votes
2
answers
175
views
constexpr friendly vector with static storage and no allocation
My take 2 on constexpr friendly StaticVector.
If the value_type is trivial, it can be user in constexpr functions normally.
If the value_type is not trivial, it uses placement new / destroy and ...
7
votes
2
answers
935
views
Integer to string converter - gcc builtins only
This is version 2 of prior post - per : CRSE:tour and Guide.
Due to unintended generalization of prior question for brevity sake, here are requirements:
Code should be portable and run on ...
7
votes
1
answer
560
views
Integer to string via gcc converter
I've been playing with shared libraries and core functionalities with gcc/g++. Using only gcc builtins I've tried to make an integer to string converter.
...
7
votes
1
answer
643
views
A static version of std::polymorphic
There sometimes is a desire to have access to the base class of a polymorphic object without wanting the overhead of dynamic allocation, see for example this question. For a more value-like way of ...
-1
votes
1
answer
117
views
Am I overusing classes and/or OOP features? [closed]
I have a very class heavy approach to writing C++ code, which I don't think is necessarily wrong. However, I often use classes without knowing if I actually need them, which I feel leads to making ...
5
votes
2
answers
201
views
Design By Contract Library in C++
I asked this question on StackOverflow, and got exactly the answer I needed at the time. I am now here to ask - Is this a good design?
The motivation for writing up this library: my shop writes ...
7
votes
5
answers
894
views
6
votes
2
answers
207
views
Markov sentence generator on input file
This is a Markov chain generator. It reads a file, reads all triples of words, and creates the Markov model. The model it makes is weighted, by which I mean that if "word1 word2 word3" ...
9
votes
1
answer
701
views
Arena/Region allocator in C++
Update: 2nd revision on separate post: Arena/Region Allocator in C++ (rev 2)
Original Post
Trying to get a better grasp on low-level memory management, I implemented an arena allocator in C++.
It's a ...