Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 84900

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.

6 votes
1 answer
2k views

Type erasure and deferred function calls for any function

1. Description 1.1. Functionality The objective of these types is to provide type erasure for any function while maintaining the ability to provide a return value through a combination of std::promi …
cr_oag's user avatar
  • 565
5 votes
4 answers
6k views

Dividing a range into N sub-ranges

Introduction The function divides a range given by a begin_iterator and an end_iterator into n sub-ranges of the same format, where the sub-ranges must be as equally sized as possible. Example Cons …
cr_oag's user avatar
  • 565
1 vote

Delete lines one at a time from text file used for batch processing

Form There is no need to explicitly call close() on file streams, as the destructor (of one of the base stream classes) ensures that the files are closed at the end of their scope. Consider making y …
cr_oag's user avatar
  • 565
3 votes
Accepted

Lock-free MultiConsumer/MultiProducer queue

Hello and welcome to Code Review. Code comments Consider writing what you expect each function to do at its most important steps. Short concise comments are preferred (I am guilty of not doing this, …
cr_oag's user avatar
  • 565
11 votes

Easier user input in C++

I've actually implemented the same functionality in the past, so here are my comments. Wrong behaviour? It depends on what you can consider wrong. Consider running your own example and inputting a a …
cr_oag's user avatar
  • 565
2 votes
0 answers
429 views

Implementation of a lock-free fixed-sized allocator - follow-up - with commented code

The following implementation of a lock-free fixed-size allocator is a follow-up of: Implementation of a lock-free fixed-sized allocator §1 - Introduction The purpose is self-learning of atomic ty …
cr_oag's user avatar
  • 565
12 votes
2 answers
2k views

Implementation of a lock-free fixed-sized allocator

This question now has a follow-up: Implementation of a lock-free fixed-sized allocator - follow-up - with commented code I've tried implementing a lock-free fixed-size allocator while trying to le …
cr_oag's user avatar
  • 565
3 votes
Accepted

MPMC lock-free queue

Welcome to Code Review. This queue implementation is not truly concurrent-ready. Arbitrary initial capacity template <typename Type, std::size_t Capacity = 100> Why have you decided that the defaul …
cr_oag's user avatar
  • 565