26 template <
typename value_t>
52 template <
typename... args_t>
53 constexpr auto operator()(args_t&&...
args)
const {
return +value(std::forward<args_t>(
args)...);}
61 [[no_unique_address]] value_t value;
65 template <
typename vakue_t>
66 requires std::is_base_of_v<expression, std::decay_t<vakue_t>>
69 return unary_plus_expression<std::decay_t<
decltype(expression)>> {std::move(expression)};
107 template <
typename value_t>
Contains xtd::expressions::as_expression methods.
The xtd::expressions::expression_operand object is expression operand concept.
Definition expression_operand.hpp:27
Contains xtd::expressions::expression_operand concept.
Contains xtd::expressions::expression_stream struct.
constexpr auto operator+(left_t left, right_t right)
Add the specified left and right operands.
Definition add_expression.hpp:121
operator_precedence
Specifies the operator precedence.
Definition operator_precedence.hpp:22
constexpr decltype(auto) as_expression(type_t &&value)
The xtd::expressions::as_expression method convert a type as xtd::expressions::expression.
Definition as_expression.hpp:33
constexpr auto operator<<(left_t left, right_t right)
Subtract the specified left and right operands.
Definition left_shift_expression.hpp:127
constexpr auto args()
Generates a set of positional placeholders that can be decomposed using structured bindings to build ...
Definition args.hpp:43
@ unary_plus
Represnets the unary plus operator precedence (+a).
Definition operator_precedence.hpp:52
@ e
The E key.
Definition console_key.hpp:96
The xtd::expressions namespace provides a lightweight, composable expression template framework for b...
Definition add_expression.hpp:14
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
The xtd::expressions::expression_stream is the streamable class for expression objects.
Definition expression_stream.hpp:23
static constexpr auto value(type_t value)
Gets the value value.
static constexpr auto unary_plus(value_t value)
Unary plus the specified left and right operands.
The xtd::expressions::unary_plus_expression is the unary plus expression.
Definition unary_plus_expression.hpp:27
constexpr unary_plus_expression(value_t value)
Initialize a new xtd::expressions::unary_plus_expression object with specified value operand.
Definition unary_plus_expression.hpp:43
constexpr auto operator()(args_t &&... args) const
Add the specified arguments.
Definition unary_plus_expression.hpp:53
static constexpr operator_precedence precedence
The operator precedence. That contains one of xtd::expressions::operator_precedence values.
Definition unary_plus_expression.hpp:32
constexpr unary_plus_expression()=default
Initialize a new xtd::expressions::unary_plus_expression object.
The xtd::expressions::value is the value wrapper.
Definition value.hpp:55
Contains xtd::expressions::unary_expression struct.