mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
7 lines
135 B
C++
7 lines
135 B
C++
#include <memory>
|
|||
|
|||
void smart() {
|
|||
auto ptr = std::make_unique<int>(42);
|
|||
// automatically cleaned up by unique_ptr destructor
|
|||
}
|