Applies a visitor to this value.
Returns:
a visitor-specified result
Parameters:
-
R - the return type of the visitor's methods
-
P - the type of the additional parameter to the visitor's methods
-
v - the visitor operating on this value
-
p - additional parameter to the visitor