cpp / latest / memory / scoped_allocator_adaptor / deduction_guides.html /

deduction guides for std::scoped_allocator_adaptor

Defined in header <scoped_allocator>
template<class OuterAlloc, class... InnerAllocs>
scoped_allocator_adaptor(OuterAlloc, InnerAllocs...)
  -> scoped_allocator_adaptor<OuterAlloc, InnerAllocs...>;
(since C++17)

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

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/scoped_allocator_adaptor/deduction_guides