#include #include #include TEST(pointers_test, swap) { // taken from gh-1129: gsl::not_null> a(std::make_unique(0)); gsl::not_null> b(std::make_unique(1)); EXPECT_TRUE(*a == 0); EXPECT_TRUE(*b == 1); gsl::swap(a, b); EXPECT_TRUE(*a == 1); EXPECT_TRUE(*b == 0); }