uses_allocator.pass.cpp [plain text]
#include <tuple>
#include <type_traits>
struct A {};
int main()
{
{
typedef std::tuple<> T;
static_assert((std::is_base_of<std::true_type,
std::uses_allocator<T, A>>::value), "");
}
{
typedef std::tuple<int> T;
static_assert((std::is_base_of<std::true_type,
std::uses_allocator<T, A>>::value), "");
}
{
typedef std::tuple<char, int> T;
static_assert((std::is_base_of<std::true_type,
std::uses_allocator<T, A>>::value), "");
}
{
typedef std::tuple<double&, char, int> T;
static_assert((std::is_base_of<std::true_type,
std::uses_allocator<T, A>>::value), "");
}
}