7 #include <unordered_set> 19 template<
class C,
class T>
size_t index_of(C
const& container, T
const& element) {
21 return static_cast<size_t>(std::distance(container.begin(), std::find(container.begin(), container.end(), element)));
std::wstring_convert< std::codecvt_utf8< char32_t >, char32_t > converter
Converts between UTF-8-encoded and UTF-32-encoded strings.
size_t index_of(C const &container, T const &element)
Basically Java's List interface's indexOf, but as a non-member function and returning the container's...
Where this library lives.