HomeManualTopicsTypesSymbols

std::shift_left

bitwise shift-left operation

Parameters

value
the value to be shifted
shift
the number of bits to shift

Result

shifted
the shifted value

Description

The first operand (must be positive integer) is shifted left by the number of bits specified by the second operandt, that must be a positive integer, too.

There is no restriction in the size of the integer numbers!

Topic

Numbers

See also

std::shift_right bitwise shift-right operation
std::bit_and bitwise and operation
std::bit_or bitwise inclusive or operation
std::bit_xor bitwise exclusive or operation

Implemented by

std_types::positive_integer returns the left-shifted value