Sauce-0.10.1
A C++ Dependency Injection Framework
named.h
1 #ifndef SAUCE_NAMED_H_
2 #define SAUCE_NAMED_H_
3 
4 #include <string>
5 
6 namespace sauce {
7 
11 template<typename Iface, typename Name>
12 class Named {};
13 
17 class Unnamed {};
18 
22 inline std::string const & unnamed() {
23  static std::string const unnamed = "unnamed";
24  return unnamed;
25 }
26 
27 }
28 
29 #endif // SAUCE_NAMED_H_
The name of all statically unnamed dependencies.
Definition: named.h:17
Wrap dependency requests with Named to choose one of several (statically) named alternatives.
Definition: named.h:12
Definition: binder.h:21