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