#include <iostream>
#include <algorithm>
#include <string>
int main() {
std::string str = " abc";
std::cout << "->" << str << "<-" << std::endl;
size_t startpos = str.find_first_not_of(" \t");
if( std::string::npos != startpos )
{
str = str.substr( startpos );
}
std::cout << "->" << str << "<-";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oKSB7CglzdGQ6OnN0cmluZyBzdHIgPSAiCQkgICAgCQkgICAgICAgICAgICBhYmMiOwoJc3RkOjpjb3V0IDw8ICItPiIgPDwgc3RyIDw8ICI8LSIgPDwgc3RkOjplbmRsOwoJCglzaXplX3Qgc3RhcnRwb3MgPSBzdHIuZmluZF9maXJzdF9ub3Rfb2YoIiBcdCIpOwoJaWYoIHN0ZDo6c3RyaW5nOjpucG9zICE9IHN0YXJ0cG9zICkKCXsKICAgIAlzdHIgPSBzdHIuc3Vic3RyKCBzdGFydHBvcyApOwoJfQoJCglzdGQ6OmNvdXQgPDwgIi0+IiA8PCBzdHIgPDwgIjwtIjsKCXJldHVybiAwOwp9