| 591 | typename alloc |
| 592 | > |
| 593 | const std::basic_string<charT,traits,alloc> ltrim ( |
| 594 | const std::basic_string<charT,traits,alloc>& str, |
| 595 | const std::basic_string<charT,traits,alloc>& trim_chars |
| 596 | ) |
| 597 | { |
| 598 | typedef std::basic_string<charT,traits,alloc> string; |
| 599 | typename string::size_type pos = str.find_first_not_of(trim_chars); |
| 600 | if (pos != string::npos) |
| 601 | return str.substr(pos); |
| 602 | else |
| 603 | return std::basic_string<charT,traits,alloc>(); |
| 604 | } |
| 605 | |
| 606 | template < |
| 607 | typename charT, |