| 75 | // Returns a reference to the argument at index N from [first, rest...]. |
| 76 | template <int N, typename T, typename... Args> |
| 77 | constexpr auto get([[maybe_unused]] const T& first, |
| 78 | [[maybe_unused]] const Args&... rest) -> const auto& { |
| 79 | static_assert(N < 1 + sizeof...(Args), "index is out of bounds"); |
| 80 | if constexpr (N == 0) |
| 81 | return first; |
| 82 | else |
| 83 | return detail::get<N - 1>(rest...); |
| 84 | } |
| 85 | |
| 86 | # if FMT_USE_NONTYPE_TEMPLATE_ARGS |
| 87 | template <int N, typename T, typename... Args, typename Char> |
nothing calls this directly
no outgoing calls
no test coverage detected