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)
Is there a type in the standard for storing the begin- and end-iterators of a container?
My question is really simple: Is there a type in the standard whose purpose is to store the begin-terator and the end-iterator for a container?
I want to return both iterators from a single function. ...
JensB
Votes: 0
Answers: 1
C++ Variadic Templates for a General-Purpose and Fast Data Storage Container Builder
template< typename ... Args>
auto build_array(Args&&... args) -> std::array<typename std::common_
type<Args...>::type, sizeof...(args)>
{
using commonType = typename s...

zahid kamil
Votes: 0
Answers: 1
Why is shared_ptr implemented using control block and not a static map?
To me, it looks like an implementation of std::shared_ptr which stores a reference counter in a static std::unordered_map<void*, struct Counters> would be much more simpler and also allow us to ...
i cant
Votes: 0
Answers: 1
Data member pointers as associative container keys
I am trying to create an std::set of pointers to data members. However, I can't find a method to sort or hash such pointers.
They can't be compared with operator<, they don't seem to be supported b...

François Andrieux
Votes: 0
Answers: 1