diff options
Diffstat (limited to 'example/simple_example')
| -rw-r--r-- | example/simple_example/Jamfile.v2 | 14 | ||||
| -rw-r--r-- | example/simple_example/example.cpp | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/example/simple_example/Jamfile.v2 b/example/simple_example/Jamfile.v2 new file mode 100644 index 0000000..a152044 --- /dev/null +++ b/example/simple_example/Jamfile.v2 @@ -0,0 +1,14 @@ +# +# File: Jamfile.v2 +# Author: Amlal El Mahrouss, +# Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License +# + +project tests +: default-build debug +; + +exe example.o + : example.cpp + : <cxxstd>20 ; + diff --git a/example/simple_example/example.cpp b/example/simple_example/example.cpp new file mode 100644 index 0000000..a60dcad --- /dev/null +++ b/example/simple_example/example.cpp @@ -0,0 +1,14 @@ +/* + * 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"); + ocl::io::println(rope.data()); +} |
