Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

false_type Typedef

 

Holds integral constant with false value.

typedef integral_constant<bool, false> false_type;

The type is a synonym for a specialization of the template integral_constant.

Example

 

#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); 
    } 

false_type == false
true_type == true

Requirements

Header: <type_traits>

Namespace: std

Show: