In C ++ 11 and the C ++ 14 project, dereference operator* ( operator* and operator-> ) for shared_ptr are noexcept . But for unique_ptr , operator-> there is noexcept , but operator* not. Why not operator* for unique_ptr noexcept (or, alternatively, why operator* for shared_ptr noexcept )?
c ++ c ++ 11 noexcept smart-pointers c ++ 14
KnowItAllWannabe
source share