20 General utilities library [utilities]

20.7 Variants [variant]

20.7.12 Allocator-related traits [variant.traits]

template <class... Types, class Alloc> struct uses_allocator<variant<Types...>, Alloc> : true_type { };

Requires: Alloc shall be an Allocator ([allocator.requirements]).

Note: Specialization of this trait informs other library components that variant can be constructed with an allocator, even though it does not have a nested allocator_type.  — end note ]