MCPcopy Create free account
hub / github.com/SFML/SFML / select

Function select

test/System/Utf.test.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18// one OS or the other.
19template <typename T>
20auto select(const std::basic_string_view<T>& string16, const std::basic_string_view<T>& string32)
21{
22 assert(string16 != string32 && "Invalid to select between identical inputs");
23 if constexpr (sizeof(wchar_t) == 2)
24 return string16;
25 else
26 return string32;
27}
28} // namespace
29
30using namespace std::string_view_literals;

Callers 3

Utf.test.cppFile · 0.70
eventProcessFunction · 0.50
waitMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected