2.13 // C++ version of an interlocked bank account class BankAccound { Usage of "auto" in the "C++" code example looks confusing at least; strictly speaking "auto lock =" actually means that lock has type int.