7 #define BOOST_TEST_MODULE (value_ptr test) 8 #include "boost/test/unit_test.hpp" 32 virtual ~
Base() noexcept =
default;
43 BOOST_AUTO_TEST_SUITE(value_ptr_test)
49 BOOST_TEST(p ==
nullptr);
50 BOOST_TEST(
nullptr == p);
56 BOOST_TEST(static_cast<bool>(p));
59 int* p_addr = p.
get();
63 BOOST_TEST(p_addr != q.
get());
67 BOOST_TEST(p_addr != p.
get());
92 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(nullptr_test)
virtual std::string who() const
std::ostream & boost_test_print_type(std::ostream &os, value_ptr< int > const p)
std::string who() const override
void reset(pointer t=pointer()) noexcept
pointer get() const noexcept