No, but you can have SomeFunction be a static member of the Bar class.
namespace Foo
{
class Bar
{
// Class code here.
static void SomeFunction()
{
// Function code here.
}
};
}
The result is not 100% equivalent to what you want (because of ADL) but the qualified names are what you expect.