[libcxx] [test] Rename _Up to U, etc. NFCI.

This improves readability and (theoretically) improves portability,
as _Ugly names are reserved.

This performs additional de-uglification, so all of these tests
follow the example of iterator.traits/empty.pass.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@310761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Stephan T. Lavavej
2017-08-11 20:54:09 +00:00
parent 8cbff23f7d
commit b859a78a6f
5 changed files with 18 additions and 18 deletions

View File

@@ -25,8 +25,8 @@ struct has_value_type
{
private:
struct two {char lx; char lxx;};
template <class _Up> static two test(...);
template <class _Up> static char test(typename _Up::value_type* = 0);
template <class U> static two test(...);
template <class U> static char test(typename U::value_type* = 0);
public:
static const bool value = sizeof(test<T>(0)) == 1;
};