We Make a std:shared_mutex 10 Times Faster
codeproject.com
codeproject.com
It is also a pity that C++ compilers still not special optimize accesses to smart pointers.
If you need smart pointers more than once in a blue moon, something is wrong.
There is always C for that.
Wearing helmets, placing seatbelts, metal gloves, rotating blade covers, gun lock switches,.... is such a nuisance.