Sign in
android
/
platform
/
external
/
google-fruit
/
fe767c45f3ea49dcaa25143e87ac28694e92819a
/
.
/
test_package
/
example.cpp
blob: 14658b5ea55f220925a75a7c10049575e27fa92a [
file
] [
log
] [
blame
]
#include
<fruit/fruit.h>
struct
X
{
INJECT
(
X
())
=
default
;
};
fruit
::
Component
<
X
>
getXComponent
()
{
return
fruit
::
createComponent
();
}
int
main
()
{
fruit
::
Injector
<
X
>
injector
(
getXComponent
);
injector
.
get
<
X
*>();
}