Am 18.02.2024 um 00:40 schrieb Chris M. Thomasson:
> On 2/17/2024 11:15 AM, Bonita Montero wrote:
>> Why is there lock_guard when unique_lock can anything lock_guard
>> can do but far more ?
>
> lock_guard is meant for its purpose. ...
You easily could do ...
template<typename Lock>
using std::lock_guard = std::unique_lock<Lock>;
... without any problems.
For me lock_guard doesn't make sense.