Stream manipulators#
sycl::stream_manipulator
#
namespace sycl {
enum class stream_manipulator : /* unspecified */ {
flush,
dec,
hex,
oct,
noshowbase,
showbase,
noshowpos,
showpos,
endl,
fixed,
scientific,
hexfloat,
defaultfloat
};
} // namespace sycl
Stream manipulator aliases#
namespace sycl {
const sycl::stream_manipulator flush = sycl::stream_manipulator::flush;
const sycl::stream_manipulator dec = sycl::stream_manipulator::dec;
const sycl::stream_manipulator hex = sycl::stream_manipulator::hex;
const sycl::stream_manipulator oct = sycl::stream_manipulator::oct;
const sycl::stream_manipulator noshowbase = sycl::stream_manipulator::noshowbase;
const sycl::stream_manipulator showbase = sycl::stream_manipulator::showbase;
const sycl::stream_manipulator noshowpos = sycl::stream_manipulator::noshowpos;
const sycl::stream_manipulator showpos = sycl::stream_manipulator::showpos;
const sycl::stream_manipulator endl = sycl::stream_manipulator::endl;
const sycl::stream_manipulator fixed = sycl::stream_manipulator::fixed;
const sycl::stream_manipulator scientific = sycl::stream_manipulator::scientific;
const sycl::stream_manipulator hexfloat = sycl::stream_manipulator::hexfloat;
const sycl::stream_manipulator defaultfloat = sycl::stream_manipulator::defaultfloat;
__precision_manipulator__ setprecision(int precision);
__width_manipulator__ setw(int width);
} // namespace sycl
Stream manipulator |
Description |
---|---|
|
Triggers a flush operation, which synchronizes the
work-item stream buffer with the global stream buffer,
and then empties the work-item stream buffer. After a
flush, the full |
|
Outputs a new-line character and then triggers a flush operation. |
|
Outputs any subsequent values in the current statement in decimal base. |
|
Outputs any subsequent values in the current statement in hexadecimal base. |
|
Outputs any subsequent values in the current statement in octal base. |
|
Outputs any subsequent values without the base prefix. |
|
Outputs any subsequent values with the base prefix. |
|
Outputs any subsequent values without a plus sign if the value is positive. |
|
Outputs any subsequent values with a plus sign if the value is positive. |
|
Sets the field width of any subsequent values in the current statement. |
|
Sets the precision of any subsequent values in the current statement. |
|
Outputs any subsequent floating-point values in the current statement in fixed notation. |
|
Outputs any subsequent floating-point values in the current statement in scientific notation. |
|
Outputs any subsequent floating-point values in the current statement in hexadecimal notation. |
|
Outputs any subsequent floating-point values in the current statement in the default notation. |