☰
Debian Codegraph
@
0.20.0+dfsg1-5
/
/
examples
/
boost_shared_ptr
/
bsp.cc
☽
☼
examples/boost_shared_ptr/bsp.cc
code
plain
raw
LGPL-2+
2006-2014 Gustavo J. A. M. Carneiro <
[email protected]
>
debian/copyright
1
#include "bsp.h"
2
3
boost::shared_ptr<Foo> g_foo;
4
5
void function_that_takes_foo(boost::shared_ptr<Foo> foo)
6
{
7
g_foo = foo;
8
}
9
10
boost::shared_ptr<Foo> function_that_returns_foo()
11
{
12
return g_foo;
13
}
14
15
16