diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-05 15:18:04 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-05 15:18:37 +0100 |
| commit | 04548b4affdc3f4aeae3fc7698d7e01ece9b02c1 (patch) | |
| tree | da253c4296a012d18c7c181c998d3a5ecfb48855 | |
| parent | fd7d880196db79f4cba69aa36438aa9213ddd918 (diff) | |
[CHORE] Update TProc README with an example.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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<tproc::crope>(", 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. |
