vendredi 22 octobre 2021

Function returning iterators to construct STL containers

I am tasked to write a function that does some sort of tokenization operation on a string and to return a begin and end iterable that can be used to construct any STL container by the calling code. How can this be acheived in C++? Any clues/ideas are appreciated.

Aucun commentaire:

Enregistrer un commentaire