#include <iostream>

class Foo { 
public:
	Foo(int, int) {}
	~Foo() {std::cout << "Foo\n"; }
};

Foo rbv();

int main()
{
  Foo x = rbv(); // the return-value of rbv() goes into x
}

Foo rbv()
{
  return Foo(42, 73); // suppose Foo has a ctor Foo::Foo(int a, int b)
}