This question already has an answer here:
- arrow operator (->) in function heading 2 answers
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