D
struct S { int foo; float bar; }
S s = { .bar = 0, .foo = 42 };Size: a a a
D
struct S { int foo; float bar; }
S s = { .bar = 0, .foo = 42 };SS
D
D
D
NM
{ .a = 1, .b = 2 }struct Test {
int x;
int y;
};
int main() {
Test test { .x = 1, .y = 2};
}NK
int a[100] = { [99] = 1, [98] = 0 }D
struct Test {
int x;
int y;
};
int main() {
Test test { .x = 1, .y = 2};
}ID
AN
int a[100] = { [99] = 1, [98] = 0 }LA
int a[100] = { [99] = 1, [98] = 0 }NK
AN
NK
NK
D
NK
ID
D
ID
agent.registerService(
kw::name = "my-service",
kw::port = 9876,
kw::tags = {"tcp", "super_server"},
kw::check = HttpCheck{"http://localhost:80/", std::chrono::seconds(2)}
);