MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / Foo

Class Foo

code/5/5.2.cpp:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <memory>
3
4struct Foo {
5 Foo() { std::cout << "Foo::Foo" << std::endl; }
6 ~Foo() { std::cout << "Foo::~Foo" << std::endl; }
7 void foo() { std::cout << "Foo::foo" << std::endl; }
8};
9
10void f(const Foo &) {
11 std::cout << "f(const Foo&)" << std::endl;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected