Select the enclosing block in C++

Press Ctrl+U.

See also How To: Edit Code and Edit Mode.