source:
liblaziness/functional.h
@
27
Last change on this file since 27 was 4, checked in by artyom, 13 years ago | |
---|---|
File size: 188 bytes |
Line | |
---|---|
1 | #ifndef __FUNCTIONAL_H__ |
2 | #define __FUNCTIONAL_H_ |
3 | |
4 | template<typename T, typename TOut> |
5 | auto operator >> (R<T> arg, R<TOut> (*fun)(R<T>)) -> decltype(fun(arg)) |
6 | { |
7 | return fun(arg); |
8 | } |
9 | |
10 | #endif |
Note: See TracBrowser
for help on using the repository browser.