Implement P0318R1 unwrap_ref_decay and unwrap_reference

Programming / Compilers / GCC - redi [138bc75d-0d04-0410-961f-82ee72b054a4] - 11 November 2018 05:17 EST

- include/std/type_traits (unwrap_reference, unwrap_reference_t) (unwrap_ref_decay, unwrap_ref_decay_t): New traits and aliases.
- testsuite/20_util/unwrap_reference/1.cc: New test.
- testsuite/20_util/unwrap_reference/2.cc: New test.

6ab4d870655 Implement P0318R1 unwrap_ref_decay and unwrap_reference
libstdc++-v3/ChangeLog | 6 +++
libstdc++-v3/include/std/type_traits | 14 ++++++
.../testsuite/20_util/unwrap_reference/1.cc | 58 ++++++++++++++++++++++
.../testsuite/20_util/unwrap_reference/2.cc | 51 +++++++++++++++++++
4 files changed, 129 insertions(+)

Upstream: gcc.gnu.org


  • Share