Add deduction guides to valarray and scoped_allocator_adaptor. This largely
finishes implementation of the paper:
- deduction guides for other classes mentioned in the paper were implemented previously (see the list below);
- deduction guides for several classes contained in the proposal (reference_wrapper, lock_guard, scoped_lock, unique_lock, shared_lock) were removed by LWG2981.
Also add deduction guides to the synopsis for the few classes (e.g. pair)
where they were missing.
The only part of the paper that isn't fully implemented after this patch is
making sure certain deduction guides don't participate in overload resolution
when given incorrect template parameters.
List of significant commits implementing the other parts of P0433 (omitting some
minor fixes):
- pair
- basic_string
- array
- deque
- forward_list
- list
- vector
- queue/stack/priority_queue
- basic_regex
- optional
- map/multimap
- set/multiset
- unordered_set/unordered_multiset
- unordered_map/unordered_multimap
- function
- tuple
- shared_ptr/weak_ptr
Additional notes:
- It was revision 2 of the paper that was voted into the Standard. P0433R3 is a separate paper that is not part of the Standard.
- The paper also mandates removing several make_*_searcher functions (e.g. make_boyer_moore_searcher) which are currently not implemented (except in experimental/).
- The __cpp_lib_deduction_guides feature test macro from the paper was accidentally omitted from the Standard.
I assume you've basically done the work already to figure out which guides you're talking about; could you specify that exact list right here? (Or even better, make a second PR that just fixes them ;))