Without using any loops or recursion, how would I write a function getLengths that, given a vector of std::strings, uses std:: function templates to produce a list of integers containing the lengths of each string in the vector.
For example, if given a vector v0 with the strings ["abc", "", "defg", "h"], the call getLengths(v0) should return a list with the integers [3,0,4,1].