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::allocate_shared Reference
<memory>
function template
<memory>
std::allocate_sharedtemplate <class T, class Alloc, class... Args> shared_ptr<T> allocate_shared (const Alloc& alloc, Args&&... args); Allocate shared_ptr
This function uses alloc to allocate storage for the object. A similar function, make_shared uses ::new to allocate the storage instead. 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. |