| 2401 | // Return the result via the out param to workaround gcc bug 77539. |
| 2402 | template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*> |
| 2403 | FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr& out) -> bool { |
| 2404 | for (out = first; out != last; ++out) { |
| 2405 | if (*out == value) return true; |
| 2406 | } |
| 2407 | return false; |
| 2408 | } |
| 2409 | |
| 2410 | template <> |
| 2411 | inline auto find<false, char>(const char* first, const char* last, char value, |
no outgoing calls
no test coverage detected