在 2012年2月8日星期三UTC+8上午8时59分41秒,Chris McAce写道:
A template function that accepts any data type and any known function to
operate on a vector of objects to be compiled is different from
an unknown function pointer passed in by the caller part in the run time.
Any object in a vector can be mapped as in the above code.
The constructor has to be called for each new object pushed into the result
vector to.
Note if the object is very large and the length of the vector is large, too
then the above code might run into problems in the heap space.