Using Sun WorkShop

Using the Double Colon Operator

The double colon operator (::) qualifies a C++ member function or top-level function with the following:

The syntax is as follows:

class_name::function_name

For example, hand::grasp.

To find RW::ListPtr::insert(), the following regular expressions will work:

insert ListPtr::insert RW::ListPtr::insert

The first two regular expressions are equivalent to .*::.*::insert and .*::ListPtr::insert and might match more symbols. The entry insert matches all functions or member functions with the name insert instead of requiring .*insert.