template<typename left_t, typename right_t>
struct xtd::expressions::xor_expression< left_t, right_t >
The xtd::expressions::xor_expression is the bitwise xor expression.
- Namespace
- xtd::expressions
- Header
#include <xtd/expressions/xor_expression>
- Library
- xtd.core
- Examples
- The following example shows how to use xtd::expressions::xor_expression.
#include <xtd/xtd>
auto main() -> int {
auto bit_xor1 =
_ ^ 0x0F;
println(
"bit_xor1 result => {}", bit_xor1(42));
println(
"bit_xor2 result => {}", bit_xor2(42, 0xF0));
}
constexpr auto _
The xtd::expressions::_ placeholder instance is used by expression that have only one argument.
Definition args.hpp:66
constexpr auto _2
The xtd::expressions::_2 placeholder instance is second argument used by expression.
Definition args.hpp:117
constexpr auto _1
The xtd::expressions::_1 placeholder instance is first argument used by expression.
Definition args.hpp:92
void println()
Writes the current line terminator to the standard output stream using the specified format informati...
Definition println.hpp:167