#include <xtd/collections/array_list>
#include <xtd/console>
template<typename collection_t>
void print_values(const collection_t& my_list) {
for (auto obj : my_list)
}
auto main() -> int {
my_vl.emplace_back("World");
my_vl.emplace_back("!");
print_values(my_vl);
}
reference emplace_back(args_t &&... args)
Appends a new element to the end of the container. The element is constructed through std::allocator_...
Definition list.h:534
static void write(arg_t &&value)
Writes the text representation of the specified value to the standard output stream.
Definition console.h:462
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Represents the standard input, output, and error streams for console applications.
Definition console.h:36
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10