template<size_t count>
struct xtd::expressions::placeholders< count >
Generates a set of positional placeholders that can be decomposed using structured bindings to build readable and composable expression templates.
- Namespace
- xtd::expressions
- Header
#include <xtd/expressions/placeholders>
- Library
- xtd.core
- Examples
- The following example shows how to use xtd::expressions::expression::placeholders.
#include <xtd/xtd>
auto main() -> int {
auto expr1 = operand_one + operand_two;
println(
"expr1 result => {}", expr1(10, 20));
println(
"expr2 result => {}", expr2(10, 20));
}
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
Generates a set of positional placeholders that can be decomposed using structured bindings to build ...
Definition placeholders.hpp:42