| 2545 | // Return the result via the out param to workaround gcc bug 77539. |
| 2546 | template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*> |
| 2547 | FMT_CONSTEXPR bool find(Ptr first, Ptr last, T value, Ptr& out) { |
| 2548 | for (out = first; out != last; ++out) { |
| 2549 | if (*out == value) return true; |
| 2550 | } |
| 2551 | return false; |
| 2552 | } |
| 2553 | |
| 2554 | template <> |
| 2555 | inline bool find<false, char>(const char* first, const char* last, char value, |
no outgoing calls
no test coverage detected