From 04548b4affdc3f4aeae3fc7698d7e01ece9b02c1 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 5 Mar 2026 15:18:04 +0100 Subject: [CHORE] Update TProc README with an example. Signed-off-by: Amlal El Mahrouss --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 9368be7..40ad55b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,24 @@ The OCL requires the following: - [Git](https://git-scm.com/) - OCL.Core +## Using TProc: + +Taken from the example, you can see: + +```cpp +int main() +{ + auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); + auto new_elem = std::make_unique(", and Jumps again."); + + rope.concat(new_elem.get()); + + std::cout << *++rope << std::endl; +} +``` + +The library is header-only as well, so no compilation step is needed, and is written in modern C++ (C++17 or later). + ## Freestanding Status The Freestanding Status is a concept where a module is evaluated on whether it has or is fully freestanding or not. -- cgit v1.2.3