python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to create a wrapper for `std::make_unique<T>`?
I'd like to create a wrapper for std::unique_ptr<T> and std::make_unique<T> because I think they look ugly and take too long to type. (Yes, I'm that kind of person).
I have completed my Un...
Jamie Pond
Votes: 0
Answers: 1
Variadic template parameter expansion issue
Below is a class (with a variadic function) declaration and definition in separate files(.hpp and .cpp). Using c++14.
// in header file
class NameBuilder{
public:
NameBuilder();
~NameBuilder();
...
zoulzubazz
Votes: 0
Answers: 0
How to write parallelly into a container
I'm working with C++14 and I don't know how to write parallelly into a container with multi-threading.
Let's say I have such a map: std::map<int, int> mp {{1, 0}, {2, 0}, {3, 0}} and a function ...

Yves
Votes: 0
Answers: 1
Understanding const reference in assignment when constructing object
Today I see this piece of code and I'm wondering to know what it is exactly doing this const reference in an assignment where a new object is created. (I don't know how to name this kind of assignment...
cbuchart
Votes: 0
Answers: 2