concept C++ in category opencl

This is an excerpt from Manning's book OpenCL in Action: How to Accelerate Graphics and Computation.
You may hear OpenCL referred to as its own separate language, but this isn’t accurate. The OpenCL standard defines a set of data types, data structures, and functions that augment C and C++. Developers have created OpenCL ports for Java and Python, but the standard only requires that OpenCL frameworks provide libraries in C and C++.
Here’s the million-dollar question: what can you do with OpenCL that you can’t do with regular C and C++? It will take this entire book to answer this question in full, but for now, let’s look at three of OpenCL’s chief advantages: portability, standardized vector processing, and parallel programming.
But when my application needs to do more than just crunch numbers, such as animate an assemblage of moving parts, I prefer an object-oriented (OO) language like C++. This gives me the benefits associated with OO programming, such as polymorphism, inheritance, and encapsulation. It also provides a wealth of capabilities through the C++ Standard Template Library (STL) and the Boost libraries.
The OpenCL Working Group provides a C++ Wrapper API that makes it possible to code full-featured OpenCL host applications in C++. This API provides many advantages over the regular C API, and three of the most important advantages are as follows:
Listing 8.8. Profiling kernels in C++: profile.cpp
... cl::CommandQueue queue(context, devices[0], CL_QUEUE_PROFILING_ENABLE); queue.enqueueTask(kernel, NULL, &profileEvent); queue.finish(); start = profileEvent.getProfilingInfo<CL_PROFILING_COMMAND_START>(); end = profileEvent.getProfilingInfo<CL_PROFILING_COMMAND_END>(); std::cout << "Elapsed time: " << (end-start) << " ns." << std::endl; ...