Getting a substring of a `std::string` between two iterators December 22, 2023 by Tarik std::string‘s constructor should provide the functionality you need. std::string(tmp1.begin() + 1, tmp1.end() - 1)