summaryrefslogtreecommitdiffhomepage
path: root/example/simple_example/example.cpp
blob: 3a1fd9b533a7e5c8072e8ec0df05451725bb2668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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.");
	rope.concat(new_elem);

	ocl::io::println((++rope)->data());
	ocl::io::println(rope.data());
}