| 52 | // Return the result via the out param to workaround gcc bug 77539. |
| 53 | template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*> |
| 54 | FMT_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 | |
| 61 | template <> |
| 62 | inline auto find<false, char>(const char* first, const char* last, char value, |
no outgoing calls