MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / invoke

Function invoke

Libs/sol/sol.hpp:4139–4142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4137#endif
4138 typename = enable_if_t<std::is_member_pointer<decay_t<Fn>>::value>, int = 0>
4139 constexpr auto invoke(Fn&& f, Args&&... args) noexcept(noexcept(std::mem_fn(f)(std::forward<Args>(args)...)))
4140 -> decltype(std::mem_fn(f)(std::forward<Args>(args)...)) {
4141 return std::mem_fn(f)(std::forward<Args>(args)...);
4142 }
4143
4144 template <typename Fn, typename... Args, typename = enable_if_t<!std::is_member_pointer<decay_t<Fn>>::value>>
4145 constexpr auto invoke(Fn&& f, Args&&... args) noexcept(noexcept(std::forward<Fn>(f)(std::forward<Args>(args)...)))

Calls 2

noexceptFunction · 0.85
luacallFunction · 0.85

Tested by

no test coverage detected