This website works better with JavaScript.
首頁
探索
說明
登入
hoo2
/
utl
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Recursive de-referencable nil_
doc
Christos Houtouridis
6 年之前
父節點
a7885e88a9
當前提交
63a7d1607d
共有
2 個文件被更改
,包括
9 次插入
和
2 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-2
include/utl/meta/integral.h
+0
-0
include/utl/meta/invoke.h
+ 9
- 2
include/utl/meta/integral.h
查看文件
@@ -33,8 +33,15 @@
namespace utl {
namespace meta {
//! Empty type
struct nil_ { };
/*!
* Empty type
* utl::meta's nil type is not pure nil. It's a recursive "de-referencable nil.
* Each time someone applies ::type to it, he gets back nil_. This way we can prevent
* a lot of compilation errors in a wrong meta:: handling.
*/
struct nil_ {
using type = nil_;
};
//! Type alias for \p _Tp::type. Used to extract return type of metafunctions
template <typename _Tp>
include/utl/meta/utility.h → include/utl/meta/invoke.h
查看文件
Write
Preview
Loading…
取消
儲存