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

std::scoped_allocator_adaptor::inner_allocator

Defined in header <scoped_allocator>

inner_allocator_type& inner_allocator();

(1)

(since C++11)

const inner_allocator_type& inner_allocator() const;

(2)

(since C++11)

获取对用于声明scoped_allocator_adaptor...

如果sizeof...(InnerAllocs) == 0,即没有声明内部分配器,返回*this否则返回对std::scoped_allocator_adaptor<InnerAllocs...>的所有内部分配器组成的作用域分配器。*this,第一个内部分配器成为外部分配器。

参数

%280%29

返回值

对内部分配器的引用,它本身是一个std::scoped_allocator_adaptor...

例外

1-2%29

noexcept规格:

noexcept

另见

outer_allocator

obtains an outer_allocator reference (public member function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券