true_type Typedef
Содержит константу, объединенную со стоимостью true.
typedef integral_constant<bool, true> true_type;
Заметки
Тип синонима для специализации шаблона integral_constant.
Пример
// std_tr1__type_traits__true_type.cpp
// compile with: /EHsc
#include <type_traits>
#include <iostream>
int main()
{
std::cout << "false_type == " << std::boolalpha
<< std::false_type::value << std::endl;
std::cout << "true_type == " << std::boolalpha
<< std::true_type::value << std::endl;
return (0);
}
Требования
заголовок:<type_traits>
пространство имен: STD