MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / SetContains

Function SetContains

src/decoder/DecoderPlugin.cxx:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23[[gnu::pure]]
24static bool
25SetContains(const auto &set, const auto &key) noexcept
26{
27#ifdef ANDROID
28 /* the libc++ version in Android NDK r25c doesn't implement
29 std::set::contains() */
30 return set.find(key) != set.end();
31#else
32 return set.contains(key);
33#endif
34}
35
36bool
37DecoderPlugin::SupportsSuffix(std::string_view suffix) const noexcept

Callers 1

SupportsSuffixMethod · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected