Refactor std::function to more easily support alternative implementations.
authorEric Fiselier <eric@efcs.ca>
Mon, 10 Dec 2018 18:14:09 +0000 (18:14 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 10 Dec 2018 18:14:09 +0000 (18:14 +0000)
commit5f503b47cb32c14fa4007b68d43b83245fa926d5
tree2a80d1eaeb30b2359060629dc5d0b2cadd757861
parentd906e731ece9942260df4097ed8e8b4cbfa70d32
Refactor std::function to more easily support alternative implementations.

Patch from Jordan Soyke (jsoyke@google.com)
Reviewed as D55520

This change adds a new internal class, called __value_func, that adds
a minimal subset of value-type semantics to the internal __func interface.

The change is NFC, and is cleanup for the upcoming ABI v2 function implementation (D55045).

llvm-svn: 348778
libcxx/include/functional