[lang-ref] ( init_empty_dict ) ( cpp )
TEST(DictInit, InitEmptyDict) {
// {}
{
map<string, int> d = {};
EXPECT_EQ(d.size(), 0);
}
{
// or just define
map<string, int> d;
EXPECT_EQ(d.size(), 0);
}
}
TEST(DictInit, InitEmptyDict) {
// {}
{
map<string, int> d = {};
EXPECT_EQ(d.size(), 0);
}
{
// or just define
map<string, int> d;
EXPECT_EQ(d.size(), 0);
}
}