Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2466 Discussions

can a struct be declared as body object instead of a class??

study24816
Beginner
229 Views
Hi Senior programmer of TBB,

Since the last posts until now, I still haven't been able to write my first application using TBB. Then, I decided to read some real application.

HOG descriptors, a algorithm to detect human, is implemented in OpenCV library and also uses TBB.

I just want to ask if a struct can be replace for a class to be declared as body object in TBB application?? because in HOG, it is done so.

Why isn't this documented in Intel TBB document (TBB tutorial or TBB getting started)? or did I miss something??

Thank you for any comment!
0 Kudos
1 Reply
RafSchietekat
Valued Contributor III
229 Views
Struct and class types are equivalent, except for different default visibilities (public resp. private).
0 Kudos
Reply