class B {
};
class A {
    A(B& b):_b(b)  
    B& _b;
};
int main() {
    B b;
    A a(b);
    char* x = reinterpret_cast<char*>(&a);
}                               
I'm creating a hash function based on the byte values of the objects. I want to know wether the bytes of object a will hold b or will they hold a reference (pointer)?
 
     
    