MCPcopy Create free account
hub / github.com/fmtlib/fmt / find

Function find

include/fmt/printf.h:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52// Return the result via the out param to workaround gcc bug 77539.
53template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*>
54FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr& out) -> bool {
55 for (out = first; out != last; ++out) {
56 if (*out == value) return true;
57 }
58 return false;
59}
60
61template <>
62inline auto find<false, char>(const char* first, const char* last, char value,

Callers 4

ValidateTestPropertyNameFunction · 0.85
OutputXmlAttributeMethod · 0.85
OutputJsonKeyMethod · 0.85
vprintfFunction · 0.85

Calls

no outgoing calls

Tested by 3

ValidateTestPropertyNameFunction · 0.68
OutputXmlAttributeMethod · 0.68
OutputJsonKeyMethod · 0.68