mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
Add missing _v traits. is_bind_expression_v, is_placeholder_v and uses_allocator_v
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@282126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,12 +14,16 @@
|
||||
// template<class T> struct is_bind_expression
|
||||
|
||||
#include <functional>
|
||||
#include "test_macros.h"
|
||||
|
||||
template <bool Expected, class T>
|
||||
void
|
||||
test(const T&)
|
||||
{
|
||||
static_assert(std::is_bind_expression<T>::value == Expected, "");
|
||||
#if TEST_STD_VER > 14
|
||||
static_assert(std::is_bind_expression_v<T> == Expected, "");
|
||||
#endif
|
||||
}
|
||||
|
||||
struct C {};
|
||||
|
@@ -12,12 +12,16 @@
|
||||
// struct is_placeholder
|
||||
|
||||
#include <functional>
|
||||
#include "test_macros.h"
|
||||
|
||||
template <int Expected, class T>
|
||||
void
|
||||
test(const T&)
|
||||
{
|
||||
static_assert(std::is_placeholder<T>::value == Expected, "");
|
||||
#if TEST_STD_VER > 14
|
||||
static_assert(std::is_placeholder_v<T> == Expected, "");
|
||||
#endif
|
||||
}
|
||||
|
||||
struct C {};
|
||||
|
Reference in New Issue
Block a user