Contains linq definitions.
◆ from()
template<class collection_t >
const auto & xtd::linq::from |
( |
const collection_t & |
source | ) |
|
|
noexcept |
#include <xtd.core/include/xtd/linq/from.hpp>
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
- Parameters
-
source | A sequence of values. |
- Returns
- The input sequence typed as xtd::collections::generic::ienumerable <type_t>.
- Header
-
- Namespace
- xtd::linq
- Library
- xtd.core
- Examples
- The following code example demonstrates how to use xtd::linq::from to create a sequence of values.
#include <xtd/xtd>
auto main() -> int {
auto items = std::vector {"One", "Two", "Three", "Four", "Five"};
while (enumerator.move_next())
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Provides a set of static methods for querying objects that implement ienumerable <type_t>.
Definition enumerable.hpp:55
const auto & from(const collection_t &source) noexcept
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
Definition from.hpp:28
Provides classes and interfaces that support queries that use Language-Integrated Query (LINQ).
Definition enumerable.hpp:38
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
- See also
- xtd::linq::enumerable::from methods for all overloads of xtd::linq::from.