#include <xtd/xtd>
class example {
public:
static auto main() -> void {
auto input =
array<string> {
"Brachiosaurus",
"Amargasaurus",
"Mamenchisaurus"};
for (auto dinosaur : dinosaurs)
dinosaurs.add_range(dinosaurs);
for(auto dinosaur : dinosaurs)
dinosaurs.remove_range(2, 2);
for(auto dinosaur : dinosaurs)
input = {"Tyrannosaurus", "Deinonychus", "Velociraptor"};
dinosaurs.insert_range(3, input);
for(auto dinosaur : dinosaurs)
auto output = dinosaurs.get_range(2, 3).to_array();
for (auto dinosaur : output)
}
};
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:79
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:167
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8