mFrame
載入中...
搜尋中...
無符合項目
Function.h
1
7#ifndef MFRAME_B1264AE8_03E1_49A5_9EE7_8C4B88B06CFE
8#define MFRAME_B1264AE8_03E1_49A5_9EE7_8C4B88B06CFE
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Interface.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace ufm::func {
23 template <typename T, typename R>
24 struct Function;
25} // namespace ufm::func
26
27/* ***************************************************************************************
28 * Class/struct/Struct
29 */
30
42template <typename T = Interface, typename R = Interface>
44 /* *************************************************************************************
45 * Method
46 */
47
58 virtual R& apply(T& t) abstract;
59
60 /* *************************************************************************************
61 * Static Method
62 */
63};
64
65/* ***************************************************************************************
66 * End of file
67 */
68
69#endif /* MFRAME_B1264AE8_03E1_49A5_9EE7_8C4B88B06CFE */
Definition BiConsumer.h:22
[Interface] 函數介面,提供接收單個參數並產生回傳值的功能
Definition Function.h:43
virtual R & apply(T &t) override
應用函數至指定的輸入物件