reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include <memory> struct Point { int x, y; }; int main() { Point pt = { 1, 2 }; Point points[] = {{1010,2020}, {3030,4040}, {5050,6060}}; Point *pt_ptr = &points[1]; Point &pt_ref = pt; std::shared_ptr<Point> pt_sp(new Point{111,222}); return 0; // Set a breakpoint here } |