首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::initializer_list::begin

const T* begin() const;

(since C++11) (until C++14)

constexpr const T* begin() const;

(since C++14)

返回指向初始化程序列表中的第一个元素的指针。

如果初始化程序列表为空,则begin()end()没有具体说明,但将是相同的。

参数

%280%29

返回值

指向初始化程序列表中的第一个元素的指针。

例外

noexcept规格:

noexcept

复杂性

常量。

另见

end

returns a pointer to one past the last element (public member function)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券