W3cubDocs

/C++

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<OuterAllocator, 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.
http://en.cppreference.com/w/cpp/memory/scoped_allocator_adaptor/deduction_guides