MCPcopy Create free account
hub / github.com/davisking/dlib / invoke

Function invoke

dlib/functional.h:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158 template< typename F, typename... Args>
159 constexpr auto invoke(F && f, Args &&... args)
160 /*!
161 ensures
162 - identical to std::invoke(std::forward<F>(f), std::forward<Args>(args)...)
163 - works with C++11 onwards
164 !*/
165 noexcept(noexcept(detail::invoke_(std::forward<F>( f ), std::forward<Args>( args )...)))
166 -> decltype(detail::invoke_(std::forward<F>( f ), std::forward<Args>( args )...))
167 {
168 return detail::invoke_(std::forward<F>( f ), std::forward<Args>( args )...);
169 }
170
171// ----------------------------------------------------------------------------------------
172

Callers 11

invoke_rFunction · 0.85
apply_implFunction · 0.85
binder_runFunction · 0.85
and_thenMethod · 0.85
transformMethod · 0.85
make_invokerMethod · 0.85
test_functionsFunction · 0.85
test_lambdasFunction · 0.85
test_constexprFunction · 0.85

Calls 1

invoke_Function · 0.85

Tested by 4

test_functionsFunction · 0.68
test_lambdasFunction · 0.68
test_constexprFunction · 0.68