Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Concept SignedInteger

SignedInteger

Refinement of

Notation

T
A type playing the role of integral-type in the SignedInteger concept.
x, y, z
Objects of type T
a, b
Objects of type int

Type expressions

Conversion to int

T must be convertible to int.

Valid expressions

Name Expression Type

Conversion from int

T(a)

T

Preincrement

++x

T &

Predecrement

--x

T &

Postincrement

x++

T

Postdecrement

x--

T

Sum

x + y

T

Sum with int

x + a

T

Sum-assignment

x += y

T &

Sum-assignment with int

x += a

T &

Difference

x - y

T

Difference with int

x - a

T

Product

x * y

T

Product with int

x * a

T

Product-assignment with int

x *= a

T &

Product with int on left

a * x

T

Quotient

x / y

T

Quotient with int

x / a

T

Right-shift

x >> y

T

Right-shift with int

x >> a

T

Right-shift-assignment with int

x >>= a

T &

Less-than comparison

x < y

Convertible to bool

Less-than comparison with int

x < a

Convertible to bool

Less-than comparison with size_t

x < boost::sample_value < std::size_t >()

Convertible to bool

Greater-than comparison

x > y

Convertible to bool

Greater-than comparison with int

x > a

Convertible to bool

Less-than-or-equal comparison

x <= y

Convertible to bool

Less-than-or-equal comparison with int

x <= a

Convertible to bool

Greater-than-or-equal comparison

x >= y

Convertible to bool

Greater-than-or-equal comparison with int

x >= a

Convertible to bool

Greater-than-or-equal comparison with int on left

a >= x

Convertible to bool

Equality comparison

x == y

Convertible to bool

Equality comparison with int

x == a

Convertible to bool


PrevUpHomeNext