Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
hoo2
/
utl
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Pull Request'ы
0
Релизы
0
Вики
Активность
Просмотр исходного кода
Recursive de-referencable nil_
doc
Christos Houtouridis
5 лет назад
Родитель
a7885e88a9
Сommit
63a7d1607d
2 измененных файлов
:
9 добавлений
и
2 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+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
Просмотреть файл
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить