3 ms·
Unfortunately yes. The implementation is straight forward though: template <typename Container> std::size_t size(Container const& c) { return c.size();
by bstamour 9y ago
Unfortunately yes. The implementation is straight forward though:
template <typename Container>
std::size_t size(Container const& c) { return c.size(); }
template <typename T, std::size_t K>
std::size_t size(T (&)[K]) { return K; }