Namespaces
Variants

deduction guides for std::indirect

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
헤더 파일에 정의됨 <memory>
template < class Value >
indirect ( Value ) - > indirect < Value > ;
(1) (C++26부터)
template < class Alloc, class Value >

indirect ( std:: allocator_arg_t , Alloc, Value )
- > indirect < Value, typename std:: allocator_traits < Alloc > ::

template rebind_alloc < Value >> ;
(2) (C++26부터)
1) deduction guide 는 단일 값으로부터의 추론을 허용하기 위해 std::indirect 에 제공됩니다.
2) 이 추론 가이드는 std::indirect 에 대해 제공되며, 값 타입이 Value 와 다른 할당자로부터의 추론을 허용합니다.

예제