[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/nlitsme/cpputils/master/include/cpputils/string-join.h [Back]  [Original]

#pragma once

template
auto stringjoin(const S& sep, const V& v)
{
    S result;
    for (auto & s : v)
    {
        if (!result.empty())
            result += sep;
        result += s;
    }
    return result;
}

Web Proxy Viewer  |  New URL  |  Original Page