jeudi 21 décembre 2017

how to understand arrow in C++11 when use function declaration [duplicate]

This question already has an answer here:

how to understand below c++11 code?

template <typename EF>
auto make_scope_exit(EF&& exit_function) -> scope_exit<EF> {
return scope_exit<typename std::remove_reference<EF>::type>
(std::forward<EF>(exit_function));
}

Aucun commentaire:

Enregistrer un commentaire