blob: 5209494059f26b68ab2c3f2b7d51d0588d77af08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* 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 <ocl/tproc/rope.hpp>
int main()
{
auto rope = ocl::tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog");
auto new_elem = new ocl::tproc::crope(", and Jumps again.");
auto res = rope.concat(new_elem);
ocl::io::println((++rope)->data());
ocl::io::println(rope.data());
delete new_elem;
delete res;
}
|