MCPcopy Create free account
hub / github.com/arvidn/libtorrent / to_vec

Function to_vec

test/test_string.cpp:217–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215
216template <size_t N>
217std::vector<char> to_vec(char const (&str)[N])
218{
219 return std::vector<char>(&str[0], &str[N - 1]);
220}
221
222#if TORRENT_USE_I2P
223std::string to_str(std::vector<char> const& v)

Callers 1

TORRENT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected