:m(m)

Please, what means THIS and where does it belong to?

 
  :m(m)




Many thanks!!!
It looks like part of an initialisation list. Have a look at:

http://www.cprogramming.com/tutorial/initialization-lists-c++.html
Thanks, Mikey!
It SHOULD be a part of constructor of a class...but I did not get the right point still...
For example,

1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
struct S {
    int m;
    S(int m) : m(m) {}
};

int main()
{
    S s = 123;
    std::cout << s.m << '\n';
}
The first m is refers to the member variable. The second m refers to the constructor parameter.
Topic archived. No new replies allowed.