src/common/utils.cpp
const std::string
Utils::convert2String(const StringList& list, const std::string& sep)
{
    const std::string result = std::accumulate(
        list.begin(),
        list.end(), std::string(""),
        boost::bind<std::string>(
            StringListAccumulator(), _1, _2, sep));

    return result;
}
// Converts a list to a string with items separated
// by the specified separator
Converts a list to a string with items separated
by the specified separator
Converts a list to a string with items separated by the specified separator
const std::string
Utils::convert2String(const StringList& list, const std::string& sep)
{
    const std::string result = std::accumulate(
        list.begin(),
        list.end(), std::string(""),
        boost::bind<std::string>(
            StringListAccumulator(), _1, _2, sep));
    return result;
}
const std :: string Utils :: convert2String ( const StringList & list , const std :: string & sep ) { const std :: string result = std :: accumulate ( list . begin ( ) , list . end ( ) , std :: string ( " " ) , boost :: bind < std :: string > ( StringListAccumulator ( ) , _1 , _2 , sep ) ) ; return result ; }
Converts a list to a string with items separated
by the specified separator
Converts a list to a string with items separated by the specified separator