Jan 26, 2015

[C++11] unique_ptr with constructor taking nullptr

Why :
constexpr unique_ptr::unique_ptr( nullptr_t );
-- Because there's Direct initialization. e.g:
unique_ptr<int> ptr = nullptr;

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.