~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty-proposed

« back to all changes in this revision

Viewing changes to yo/stl/makeshared.yo

  • Committer: Package Import Robot
  • Author(s): Frank B. Brokken
  • Date: 2013-05-30 13:32:18 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20130530133218-k39mr5uredd093jr
Tags: 9.7.2-1
New upstream release, repairs several minor left-over flaws.
This release incorporates 9.7.0 and 9.7.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
constructor) using the ti(make_shared) template. The function template
13
13
tt(std::make_shared) has the following prototype:
14
14
        verb(
15
 
    template<class Type, class ...Args>
 
15
    template<typename Type, typename ...Args>
16
16
    std::shared_ptr<Type> std::make_shared(Args ...args);
17
17
        )
18
18
    Before using tt(make_shared) the tthi(memory) header file must have
19
19
been included.
20
20
 
21
 
    This function template allocates an object of class tt(Type), passing
 
21
    This function template allocates an object of type tt(Type), passing
22
22
tt(args) to its constructor (using em(perfect forwarding), see section
23
23
ref(PERFECT)), and returns a tt(shared_ptr) initialized with the address of
24
24
the newly allocated tt(Type) object.