template<typename type_t>
struct xtd::expressions::value< type_t >
The xtd::expressions::value is the value wrapper.
- Namespace
- xtd::expressions
- Header
#include <xtd/expressions/value>
- Library
- xtd.core
- Examples
- The following example shows how to use xtd::expressions::expression::value.
#include <xtd/xtd>
auto main() -> int {
auto value1 =
value {10};
println(
"value1 result => {}", value1());
println(
"value2 result => {}", value2());
println(
"value3 result => {}", value3());
println(
"value4 result => {}", value4());
println(
"expr1 result => {}", expr1());
}
void println()
Writes the current line terminator to the standard output stream using the specified format informati...
Definition println.hpp:167
static constexpr auto value(type_t value)
Gets the value value.
The xtd::expressions::value is the value wrapper.
Definition value.hpp:55
constexpr value(type_t value)
Initialize a new xtd::expressions::value object with specified value value.
Definition value.hpp:68
|
| template<typename... args_t> |
| constexpr auto | operator() (args_t &&...) const |
| | Gets the value value.
|
◆ value()
template<typename type_t>
◆ operator()()
template<typename type_t>
template<typename... args_t>
Gets the value value.
- Returns
- The value value.
◆ precedence
template<typename type_t>
The documentation for this struct was generated from the following file: