operators of logic c++ examples Example: c++ .* operator The .* operator is used to dereference pointers to class members.