std::begin(std::initializer_list)

std::begin(std::initializer_list)

template< class E > 
const E* begin( initializer_list<E> il ) noexcept;
(since C++11)
(until C++14)
template< class E > 
constexpr const E* begin( initializer_list<E> il ) noexcept;
(since C++14)

The overload of std::begin for initializer_list returns a pointer to the first element of il.

登录查看完整内容