deduction guides for std::indirect
来自cppreference.com
| 在标头 <memory> 定义
|
||
| template< class Value > indirect( Value ) -> indirect<Value>; |
(1) | (C++26 起) |
| template< class Alloc, class Value > indirect( std::allocator_arg_t, Alloc, Value ) |
(2) | (C++26 起) |
2) 为 std::indirect 提供此推导指引,以允许从值类型与
Value 不同的分配器推导。示例
| 本节未完成 原因:暂无示例 |