Namespaces
Variants
Views
Actions

deduction guides for std::scoped_allocator_adaptor

From cppreference.com
 
 
Dynamic memory management
Uninitialized storage
(C++17)
(deprecated since c++17)
(deprecated since c++17)
(deprecated since c++17)
Garbage collection support
Miscellaneous
(C++20)
(C++11)
(C++11)
C Library
Low level memory management
 
 
Defined in header <scoped_allocator>
template<class OuterAlloc, class... InnerAllocs>

scoped_allocator_adaptor(OuterAlloc, InnerAllocs...)

  -> scoped_allocator_adaptor<OuterAllocator, InnerAllocs...>;
(since C++17)

One deduction guide is provided for std::scoped_allocator_adaptor to make it possible to deduce its outer allocator.

[edit] Example