[libcxx] adds common_reference to <type_traits>
authorChristopher Di Bella <cjdb.ns@gmail.com>
Tue, 2 Mar 2021 22:33:21 +0000 (22:33 +0000)
committerChristopher Di Bella <cjdb@google.com>
Tue, 2 Mar 2021 22:33:37 +0000 (22:33 +0000)
commiteadece333f6112502046fad0f2c062d13a37079b
treed927ee8c781c20ab593012632a751d33ee6a2c40
parentfd82cbcf7d73827181bf5f5d483dc806120ce120
[libcxx] adds common_reference to <type_traits>

Implements part of P0898R3 Standard Library Concepts

Reworks D74351 to use requires-clauses over SFINAE and so that it more
closely follows the wording.

Co-authored by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com>

(Michael did all the heavy lifting and I came in to polish it for
 submission, since Michael is focussing on `std::format` now.)

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D96657
libcxx/include/type_traits
libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_reference.compile.pass.cpp [new file with mode: 0644]