/* * File: example.cpp * Purpose: Rope example. * Author: Amlal El Mahrouss (amlal@nekernel.org) * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. */ #include #ifndef STANDALONE using namespace ocl; #else using namespace boost; #endif int main() { auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); std::unique_ptr new_elem(new tproc::crope(", and Jumps again.")); std::unique_ptr res(rope.concat(new_elem.get())); io::println((++rope)->data()); io::println(rope.data()); }