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
thx man, that cleared things up.
Topic archived. No new replies allowed.