Other Smaller Removed or Deprecated Items
This lesson will describe the deprecated features.
Deprecated Features
Deprecating shared_ptr::unique()
In C++14 shared_ptr::unique()
was defined as use_count() == 1
. But since use_count()
is only approximation in multithreaded environments (as it doesn’t imply any synchronisation access) then unique()
it not reliable.
See more information in P0521.
Deprecating <codecvt>
The <codecvt>
header declares several conversion utilities: codecvt_utf8
, codecvt_utf16
and ...