#include #if defined(LIBIMP_CPP_17) && defined(__cpp_lib_memory_resource) #include #endif #include "gtest/gtest.h" #include "libpmr/allocator.h" TEST(allocator, detail) { EXPECT_FALSE(pmr::detail::has_allocate::value); EXPECT_FALSE(pmr::detail::has_allocate::value); EXPECT_FALSE(pmr::detail::has_allocate>::value); EXPECT_TRUE (pmr::detail::has_allocate>::value); #if defined(LIBIMP_CPP_17) && defined(__cpp_lib_memory_resource) EXPECT_TRUE (pmr::detail::has_allocate::value); EXPECT_TRUE (pmr::detail::has_allocate>::value); #endif } TEST(allocator, construct) { }