blob: 22d4b0bde4004e474e7a31a752ecafe7c0583616 [file] [log] [blame]
Brian Silverman4a2409e2018-08-04 23:24:02 -07001[/
2 Copyright 2007 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
6]
7
8[section:is_floating_point is_floating_point]
9 template <class T>
10 struct is_floating_point : public __tof {};
11
12__inherit If T is a (possibly cv-qualified) floating point type then inherits from __true_type,
13otherwise inherits from __false_type.
14
15__std_ref 3.9.1p8.
16
17[all_compilers]
18
19__header ` #include <boost/type_traits/is_floating_point.hpp>` or ` #include <boost/type_traits.hpp>`
20
21__examples
22
23[:`is_floating_point<float>` inherits from `__true_type`.]
24
25[:`is_floating_point<double>::type` is the type `__true_type`.]
26
27[:`is_floating_point<long double>::value` is an integral constant
28expression that evaluates to /true/.]
29
30[:`is_floating_point<T>::value_type` is the type `bool`.]
31
32[endsect]
33