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

Function apply_impl

dlib/functional.h:253–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 {
252 template<typename F, typename Tuple, std::size_t... I>
253 constexpr auto apply_impl(F&& fn, Tuple&& tpl, index_sequence<I...>)
254 noexcept(noexcept(dlib::invoke(std::forward<F>(fn),
255 std::get<I>(std::forward<Tuple>(tpl))...)))
256 -> decltype(dlib::invoke(std::forward<F>(fn),
257 std::get<I>(std::forward<Tuple>(tpl))...))
258 {
259 return dlib::invoke(std::forward<F>(fn),
260 std::get<I>(std::forward<Tuple>(tpl))...);
261 }
262 } // end namespace detail
263
264// ----------------------------------------------------------------------------------------

Callers 1

applyFunction · 0.85

Calls 1

invokeFunction · 0.85

Tested by

no test coverage detected