HomeManualTopicsTypesSymbols

std::is_even

returns true if the specified value is even, false otherwise

Parameter

n
the value to check

Result

success
true or false

Example

dump! `is_even(124)

Output

is_even(124): <true>

Example

dump! `is_even(123)

Output

is_even(123): <false>

Topic

Math

See also

std::is_odd returns true if the specified value is odd, false otherwise