Debugging a Program With dbx

C++ Double Colon Scope Resolution Operator

Use the double colon operator (::) to qualify a C++ member function or top level function with:

You may want to qualify an overloaded function name. If you do not qualify it, dbx pops up an overload display list for you to choose which function you mean to visit. If you know the function class name, you can use it with the double colon scope resolution operator to qualify the name.


(dbx) func class::function_name
 (args)

For example, if hand is the class name and draw is the function name:


(dbx) func hand::draw