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:
Marshall Clow
2016-09-22 00:23:15 +00:00
parent fd4a3f6cef
commit 2fffe3a6ff
5 changed files with 62 additions and 10 deletions

View File

@@ -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 {};

View File

@@ -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 {};