I was using the following code to convert the string to
lowercase.
string foo = "Some Mixed Case Text";
transform(foo.b egin(), foo.end(), foo.begin(), tolower);
I thought the above code is portable.
But, the following page has a different view on this:
Can anybody comment on it ?
Also, I would like to know whether tolower template or function will be used
in the above code.
transform(foo.b egin(), foo.end(), foo.begin(), tolower);
lowercase.
string foo = "Some Mixed Case Text";
transform(foo.b egin(), foo.end(), foo.begin(), tolower);
I thought the above code is portable.
But, the following page has a different view on this:
Can anybody comment on it ?
Also, I would like to know whether tolower template or function will be used
in the above code.
transform(foo.b egin(), foo.end(), foo.begin(), tolower);
Comment