diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-04 07:56:21 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-04 07:56:21 +0100 |
| commit | 149a5998b5ec6f825998a27a305d972022271888 (patch) | |
| tree | 981ff51c3ed77b8447631a86e916d590eb6e0e8d /example/smart_ptr_example/example.cpp | |
| parent | 8e2394ed661dd223fb02b3a63fb03ca869bad44c (diff) | |
core: tracked_ptr: Update public API.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/smart_ptr_example/example.cpp')
| -rw-r--r-- | example/smart_ptr_example/example.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/example/smart_ptr_example/example.cpp b/example/smart_ptr_example/example.cpp index fbf8f3d..61903f5 100644 --- a/example/smart_ptr_example/example.cpp +++ b/example/smart_ptr_example/example.cpp @@ -10,11 +10,11 @@ /// \brief Smart pointer example. auto main(int argc, char** argv) -> int { - ocl::shared_ptr<std::ostream> smart = ocl::delete_ptr(&std::cout); - *smart << "hello, world\n"; + ocl::shared_ptr<std::ostream> smart = ocl::delete_ptr(&std::cout); + *smart << "hello, world\n"; - ocl::tracked_ptr<int> tracked = ocl::make_tracked<int>(10); - *smart << *tracked << "\n"; - - return EXIT_SUCCESS; + ocl::tracked_ptr<int> tracked = ocl::make_tracked<int>(10); + *smart << *tracked << "\n"; + + return EXIT_SUCCESS; } |
