Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
216
template <size_t N>
217
std::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
223
std::string to_str(std::vector<char> const& v)
Callers
1
TORRENT_TEST
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected