Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To fully specify the return type of a function with a namespace, the namespace should be included in the return type declaration. For example, if the function returns an integer and is part of a namespace called "mynamespace", the return type declaration would be:

mynamespace::integer

This would indicate that the function returns an integer from the "mynamespace" namespace. If the namespace contains sub-namespaces, they can also be included in the return type declaration.