c++ make shared_ptr
#include <memory>
std::shared_ptr<int> foo = std::make_shared<int> (10);
c++ make shared_ptr
#include <memory>
std::shared_ptr<int> foo = std::make_shared<int> (10);
c++ const shared_ptr
shared_ptr<T> p; ---> T * p; : nothing is const
const shared_ptr<T> p; ---> T * const p; : p is const
shared_ptr<const T> p; ---> const T * p; <=> T const * p; : *p is const
const shared_ptr<const T> p; ---> const T * const p; <=> T const * const p; : p and *p are const.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us