Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2015. The current version is 1.89.0.
template <class T>
struct floating_point_promotion
{
typedef see-below type;
};
type: If floating point promotion can be
applied to an rvalue of type T,
then applies floating point promotion to T
and keeps cv-qualifiers of T,
otherwise leaves T unchanged.
C++ Standard Reference: 4.6.
Header: #include
<boost/type_traits/floating_point_promotion.hpp>
or #include <boost/type_traits.hpp>
Table 1.18. Examples
|
Expression |
Result Type |
|---|---|
|
|
|
|
|
|
|
|
|