/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.mod/ |
D | emplace_type_args.pass.cpp | 45 template <class... Args> constexpr bool emplace_exists() { in emplace_exists() function 52 static_assert(emplace_exists<V, int>(), ""); in test_emplace_sfinae() 53 static_assert(emplace_exists<V, int, int>(), ""); in test_emplace_sfinae() 54 static_assert(!emplace_exists<V, int, decltype(nullptr)>(), in test_emplace_sfinae() 56 static_assert(emplace_exists<V, void *, decltype(nullptr)>(), ""); in test_emplace_sfinae() 57 static_assert(!emplace_exists<V, void *, int>(), "cannot construct"); in test_emplace_sfinae() 58 static_assert(emplace_exists<V, void *, int *>(), ""); in test_emplace_sfinae() 59 static_assert(!emplace_exists<V, void *, const int *>(), ""); in test_emplace_sfinae() 60 static_assert(emplace_exists<V, const void *, const int *>(), ""); in test_emplace_sfinae() 61 static_assert(emplace_exists<V, const void *, int *>(), ""); in test_emplace_sfinae() [all …]
|
D | emplace_index_args.pass.cpp | 46 template <class Var, size_t I, class... Args> constexpr bool emplace_exists() { in emplace_exists() function 53 static_assert(emplace_exists<V, 0>(), ""); in test_emplace_sfinae() 54 static_assert(emplace_exists<V, 0, int>(), ""); in test_emplace_sfinae() 55 static_assert(!emplace_exists<V, 0, decltype(nullptr)>(), in test_emplace_sfinae() 57 static_assert(emplace_exists<V, 1, decltype(nullptr)>(), ""); in test_emplace_sfinae() 58 static_assert(emplace_exists<V, 1, int *>(), ""); in test_emplace_sfinae() 59 static_assert(!emplace_exists<V, 1, const int *>(), ""); in test_emplace_sfinae() 60 static_assert(!emplace_exists<V, 1, int>(), "cannot construct"); in test_emplace_sfinae() 61 static_assert(emplace_exists<V, 2, const int *>(), ""); in test_emplace_sfinae() 62 static_assert(emplace_exists<V, 2, int *>(), ""); in test_emplace_sfinae() [all …]
|
D | emplace_index_init_list_args.pass.cpp | 57 template <class Var, size_t I, class... Args> constexpr bool emplace_exists() { in emplace_exists() function 65 static_assert(!emplace_exists<V, 1, IL>(), "no such constructor"); in test_emplace_sfinae() 66 static_assert(emplace_exists<V, 2, IL>(), ""); in test_emplace_sfinae() 67 static_assert(!emplace_exists<V, 2, int>(), "args don't match"); in test_emplace_sfinae() 68 static_assert(!emplace_exists<V, 2, IL, int>(), "too many args"); in test_emplace_sfinae() 69 static_assert(emplace_exists<V, 3, IL, int>(), ""); in test_emplace_sfinae() 70 static_assert(!emplace_exists<V, 3, int>(), "args don't match"); in test_emplace_sfinae() 71 static_assert(!emplace_exists<V, 3, IL>(), "too few args"); in test_emplace_sfinae() 72 static_assert(!emplace_exists<V, 3, IL, int, int>(), "too many args"); in test_emplace_sfinae()
|
D | emplace_type_init_list_args.pass.cpp | 57 template <class... Args> constexpr bool emplace_exists() { in emplace_exists() function 65 static_assert(emplace_exists<V, InitList, IL>(), ""); in test_emplace_sfinae() 66 static_assert(!emplace_exists<V, InitList, int>(), "args don't match"); in test_emplace_sfinae() 67 static_assert(!emplace_exists<V, InitList, IL, int>(), "too many args"); in test_emplace_sfinae() 68 static_assert(emplace_exists<V, InitListArg, IL, int>(), ""); in test_emplace_sfinae() 69 static_assert(!emplace_exists<V, InitListArg, int>(), "args don't match"); in test_emplace_sfinae() 70 static_assert(!emplace_exists<V, InitListArg, IL>(), "too few args"); in test_emplace_sfinae() 71 static_assert(!emplace_exists<V, InitListArg, IL, int, int>(), in test_emplace_sfinae()
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.mod/ |
D | emplace_type_args.pass.cpp | 48 template <class... Args> constexpr bool emplace_exists() { in emplace_exists() function 55 static_assert(emplace_exists<V, int>(), ""); in test_emplace_sfinae() 56 static_assert(emplace_exists<V, int, int>(), ""); in test_emplace_sfinae() 57 static_assert(!emplace_exists<V, int, decltype(nullptr)>(), in test_emplace_sfinae() 59 static_assert(emplace_exists<V, void *, decltype(nullptr)>(), ""); in test_emplace_sfinae() 60 static_assert(!emplace_exists<V, void *, int>(), "cannot construct"); in test_emplace_sfinae() 61 static_assert(emplace_exists<V, void *, int *>(), ""); in test_emplace_sfinae() 62 static_assert(!emplace_exists<V, void *, const int *>(), ""); in test_emplace_sfinae() 63 static_assert(emplace_exists<V, const void *, const int *>(), ""); in test_emplace_sfinae() 64 static_assert(emplace_exists<V, const void *, int *>(), ""); in test_emplace_sfinae() [all …]
|
D | emplace_index_args.pass.cpp | 49 template <class Var, size_t I, class... Args> constexpr bool emplace_exists() { in emplace_exists() function 56 static_assert(emplace_exists<V, 0>(), ""); in test_emplace_sfinae() 57 static_assert(emplace_exists<V, 0, int>(), ""); in test_emplace_sfinae() 58 static_assert(!emplace_exists<V, 0, decltype(nullptr)>(), in test_emplace_sfinae() 60 static_assert(emplace_exists<V, 1, decltype(nullptr)>(), ""); in test_emplace_sfinae() 61 static_assert(emplace_exists<V, 1, int *>(), ""); in test_emplace_sfinae() 62 static_assert(!emplace_exists<V, 1, const int *>(), ""); in test_emplace_sfinae() 63 static_assert(!emplace_exists<V, 1, int>(), "cannot construct"); in test_emplace_sfinae() 64 static_assert(emplace_exists<V, 2, const int *>(), ""); in test_emplace_sfinae() 65 static_assert(emplace_exists<V, 2, int *>(), ""); in test_emplace_sfinae() [all …]
|
D | emplace_index_init_list_args.pass.cpp | 60 template <class Var, size_t I, class... Args> constexpr bool emplace_exists() { in emplace_exists() function 68 static_assert(!emplace_exists<V, 1, IL>(), "no such constructor"); in test_emplace_sfinae() 69 static_assert(emplace_exists<V, 2, IL>(), ""); in test_emplace_sfinae() 70 static_assert(!emplace_exists<V, 2, int>(), "args don't match"); in test_emplace_sfinae() 71 static_assert(!emplace_exists<V, 2, IL, int>(), "too many args"); in test_emplace_sfinae() 72 static_assert(emplace_exists<V, 3, IL, int>(), ""); in test_emplace_sfinae() 73 static_assert(!emplace_exists<V, 3, int>(), "args don't match"); in test_emplace_sfinae() 74 static_assert(!emplace_exists<V, 3, IL>(), "too few args"); in test_emplace_sfinae() 75 static_assert(!emplace_exists<V, 3, IL, int, int>(), "too many args"); in test_emplace_sfinae()
|
D | emplace_type_init_list_args.pass.cpp | 60 template <class... Args> constexpr bool emplace_exists() { in emplace_exists() function 68 static_assert(emplace_exists<V, InitList, IL>(), ""); in test_emplace_sfinae() 69 static_assert(!emplace_exists<V, InitList, int>(), "args don't match"); in test_emplace_sfinae() 70 static_assert(!emplace_exists<V, InitList, IL, int>(), "too many args"); in test_emplace_sfinae() 71 static_assert(emplace_exists<V, InitListArg, IL, int>(), ""); in test_emplace_sfinae() 72 static_assert(!emplace_exists<V, InitListArg, int>(), "args don't match"); in test_emplace_sfinae() 73 static_assert(!emplace_exists<V, InitListArg, IL>(), "too few args"); in test_emplace_sfinae() 74 static_assert(!emplace_exists<V, InitListArg, IL, int, int>(), in test_emplace_sfinae()
|