Beginner needs guidance with basic C++ syntax

Hello,

I have the following class, "ApplyFoo".
Can anyone please tell me what this means:
ApplyFoo( float a[] ) : my_a(a){}
First it seems there is a constructor ("ApplyFoo"), then an argument (an array of floats). Then what is the "my_a(a)" with the colon???

Thanks in advance,
J.

Complete class follows:
***************************************

#include "tbb/tbb.h"
using namespace tbb;
class ApplyFoo {
float *const my_a;
public:
void operator()( const blocked_range<size_t>& r ) const {
float *a = my_a;
for( size_t i=r.begin(); i!=r.end(); ++i )
Foo(a[i]);
}
ApplyFoo( float a[] ) : my_a(a){
}
};
I see...
Thanks.
Topic archived. No new replies allowed.