This is what I found in a program’s code:
pff::NAS::NAS( const NAS& p_Other )
: pff::MCCI(_T("NAS")) //<- ?
, m_strS(_T("JustAString")) //<- ?
, m_strK(_T("JustAString")) //<- ?
, m_strR(p_Other.GetmystrR()) //<- ?
, m_Swap()
{ }
And my Question is:
What are those (//<- ?)-marked lines called? I’d love to search for what its supposed to do and why the person who did this code used it.
It’s called initialization list.
More information in the excellent FAQ http://www.parashift.com/c++-faq/init-lists.html