I am going through some code and I am having dificulty in comprehending the syntax:
struct Foo {
int val_;
Foo(int v) : val_(v) {} //--->THIS LINE
};
The colon :
seems like a member access operator.
Can I get a clear explanation the above line?