std::scoped_allocator_adaptor::outer_allocator
Defined in header <scoped_allocator> | | |
---|---|---|
outer_allocator_type& outer_allocator(); | (1) | (since C++11) |
const outer_allocator_type& outer_allocator() const; | (2) | (since C++11) |
获取对用于声明该类的外部分配器的引用。
1%29static_cast<OuterAlloc&>(*this)
...
2%29static_cast<const OuterAlloc&>(*this)
...
参数
%280%29
返回值
引用OuterAlloc
...
例外
1-2%29
noexcept
规格:
noexcept
另见
inner_allocator | obtains an inner_allocator reference (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com