Namespaces
Variants
Views
Actions

std::is_floating_point

From cppreference.com
< cpp‎ | types
Revision as of 07:15, 25 October 2011 by Cubbi (Talk | contribs)

Template:cpp/types/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <type_traits>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
template< class T >
struct is_floating_point;
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> Template:ddcl list end

If T is a floating-point type (Template:cpp, Template:cpp, Template:cpp, including any cv-qualified variants), provides the member constant value equal Template:cpp. For any other type, value is Template:cpp.

Contents

Inherited from std::integral_constant

Member constants

value
[static]
true if T is a floating-point type , false otherwise
(public static member constant)

Member functions

operator bool
converts the object to bool, returns value
(public member function)
operator()
(C++14)
returns value
(public member function)

Member types

Type Definition
value_type bool
type std::integral_constant<bool, value>

Example

Template:example cpp

See also

[static]
identifies the IEC 559/IEEE 754 floating-point types
(public static member constant of std::numeric_limits<T>) [edit]
checks if a type is an integral type
(class template) [edit]
checks if a type is an arithmetic type
(class template) [edit]