core: mark apply() inline

This commit is contained in:
Avi Kivity
2015-03-08 10:53:49 +02:00
parent ee8fa7b07a
commit 808ac29cf3

View File

@@ -36,6 +36,7 @@ struct apply_helper<Func, std::tuple<T...>, std::index_sequence<I...>> {
};
template <typename Func, typename... T>
inline
auto apply(Func func, std::tuple<T...>&& args) {
using helper = apply_helper<Func, std::tuple<T...>, std::index_sequence_for<T...>>;
return helper::apply(std::move(func), std::move(args));