19 lines
265 B
C++
19 lines
265 B
C++
#define NULL __null
|
|
|
|
namespace std {
|
|
|
|
template <typename T>
|
|
struct unique_ptr {
|
|
T& operator*() const;
|
|
T* operator->() const;
|
|
T* get() const;
|
|
explicit operator bool() const noexcept;
|
|
};
|
|
}
|
|
|
|
struct A {
|
|
};
|
|
|
|
void foo() {
|
|
A& b2 = *std::unique_ptr<A>().get();
|
|
}
|