29 using namespace folly;
34 function<void()> dtor_;
35 function<void()> move_;
36 Magic(
function<
void()> ctor,
function<
void()> dtor,
function<
void()>
move)
40 Magic(Magic&& other) {
43 Magic& operator=(Magic&& other) {
59 map<string, int>{{
"key1", 17}, {
"key2", 19}, {
"key3", 23}}};
65 TEST_F(IndestructibleTest, no_destruction) {
79 sing.~Indestructible();
117 TEST_F(IndestructibleTest, disabled_default_ctor) {
128 TEST_F(IndestructibleTest, list_initialization) {
134 class InitializerListConstructible {
136 InitializerListConstructible(InitializerListConstructible&&) =
default;
137 explicit InitializerListConstructible(std::initializer_list<int>) {}
138 InitializerListConstructible(std::initializer_list<double>,
double) {}
142 TEST_F(IndestructibleTest, initializer_list_in_place_initialization) {
143 using I = InitializerListConstructible;
149 class ExplicitlyMoveConstructible {
151 ExplicitlyMoveConstructible() =
default;
152 explicit ExplicitlyMoveConstructible(ExplicitlyMoveConstructible&&) =
default;
156 TEST_F(IndestructibleTest, list_initialization_explicit_implicit) {
157 using E = ExplicitlyMoveConstructible;
158 using I = std::map<int, int>;
#define EXPECT_EQ(val1, val2)
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
constexpr auto empty(C const &c) -> decltype(c.empty())
static map< string, int > m
static const char *const value
#define EXPECT_TRUE(condition)
#define EXPECT_FALSE(condition)
TEST_F(IndestructibleTest, access)
static constexpr uint64_t data[1]