MCPcopy Create free account
hub / github.com/Neargye/magic_enum / invoke_r

Function invoke_r

include/magic_enum/magic_enum.hpp:1070–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068
1069template <typename R, typename F, typename... Args>
1070constexpr R invoke_r(F&& f, Args&&... args) noexcept(std::is_nothrow_invocable_r_v<R, F, Args...>) {
1071 if constexpr (std::is_void_v<R>) {
1072 std::forward<F>(f)(std::forward<Args>(args)...);
1073 } else {
1074 return static_cast<R>(std::forward<F>(f)(std::forward<Args>(args)...));
1075 }
1076}
1077
1078enum class case_call_t {
1079 index,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected