GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing cplusplus.com — std::make_shared Reference
<memory>
function template
<memory>
std::make_sharedtemplate <class T, class... Args> shared_ptr<T> make_shared (Args&&... args); Make shared_ptr
This function uses ::new to allocate storage for the object. A similar function, allocate_shared, accepts an allocator as argument and uses it to allocate the storage. Parameters
Return ValueA shared_ptr object that owns and stores a pointer to a newly allocated object of type T.Example
Output:
See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | |||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |