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 the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
Real Number Generators

See here for more information about Numeric Generators.

Expression

Attribute

Description

lit(num)

Unused

Generate num

float_

float

Generate a real number from a float

float_(num)

float

Generate num as a real number from a float, if an attribute is supplied it must match num

double_

double

Generate a real number from a double

double_(num)

double

Generate a num as a real number from a double, if an attribute is supplied it must match num

long_double

long double

Generate a real number from a long double

long_double(num)

long double

Generate num as a real number from a long double, if an attribute is supplied it must match num

real_generator<
    Num, Policies
>()

Num

Generate a real number Num using the supplied real number formatting policies

real_generator<
    Num, Policies
>()(num)

Num

Generate real number num as a Num using the supplied real number formatting policies, if an attribute is supplied it must match


PrevUpHomeNext