false_type Typedef

更新 : 2007 年 11 月

false 値を持つ整数定数を保持します。

typedef integral_constant<bool, false> false_type;

解説

この型は、テンプレート integral_constant から特化したテンプレートのシノニムです。

使用例

 

// std_tr1__type_traits__false_type.cpp 
// compile with: /EHsc 
#include <type_traits> 
#include <iostream> 
 
int main() 
    { 
    std::cout << "false_type == " << std::boolalpha 
        << std::tr1::false_type::value << std::endl; 
    std::cout << "true_type == " << std::boolalpha 
        << std::tr1::true_type::value << std::endl; 
 
    return (0); 
    } 
 
false_type == false
true_type == true

必要条件

ヘッダー : <type_traits>

名前空間 : std::tr1

参照

参照

<type_traits>

true_type Typedef