blob: fdcd638a906bb99071c14c1429002e5c5f8a99f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* File: example.cpp
* Purpose: Rope example.
* Author: Amlal El Mahrouss (amlal@nekernel.org)
* Copyright 2025-2026, Amlal El Mahrouss, licensed under the Boost Software License.
*/
#include <ocl/tproc/rope.hpp>
#include <iostream>
#include <memory>
#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");
auto new_elem = std::make_unique<tproc::crope>(", and Jumps again.");
rope.concat(new_elem.get());
std::cout << *++rope << std::endl;
}
|