question regarding some c++ syntax

I'm reading The C++ Standard Library. within the implementation for auto_ptr, there is this line:

struct auto_ptr_ref {
     Y* yp;
     auto_ptr_ref (Y* rhs)
       : yp(rhs) {       <-- this is the line
     }
};


I'm wondering what ":yp(rhs)" and the following parentheses doing here? Anyone care to explain?

Thanks
It is called initialization list.

Here have a read.
http://www.cprogramming.com/tutorial/initialization-lists-c++.html
thx man, that cleared things up.
Topic archived. No new replies allowed.