diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-14 02:18:46 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-14 02:18:46 +0100 |
| commit | 2448ac2ef13d96e4ef3b7a9a15ef1cfdc2195831 (patch) | |
| tree | 55a4ab28858813722f926dc3a21ffdf7795aced6 /examples/smart_ptr_example/example.cc | |
| parent | 3b336edafad6fecbe41b9485d80cdd247ac70d0e (diff) | |
chore: `option.hpp` improvements, new examples in `examples`.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples/smart_ptr_example/example.cc')
| -rw-r--r-- | examples/smart_ptr_example/example.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/smart_ptr_example/example.cc b/examples/smart_ptr_example/example.cc new file mode 100644 index 0000000..ef1a865 --- /dev/null +++ b/examples/smart_ptr_example/example.cc @@ -0,0 +1,10 @@ +#include <ocl/crc_hash.hpp> +#include <ocl/print.hpp> +#include <ocl/smart_ptr.hpp> + +int main(int argc, char** argv) +{ + ocl::shared_ptr<std::ostream> smart = ocl::delete_ptr(&std::cout); + + return 0; +} |
