In this answer, the following code is given (C++11):
template <typename T, size_t N> constexpr size_t size_of(T (&)[N]) { return N; }
What does the (&) mean in this context? This sort of thing is exceptionally difficult to search for.
(&)
Aucun commentaire:
Enregistrer un commentaire