Results 1 to 3 of 3

Thread: Using get_allocator () in C++

  1. #1
    AdamsClark is offline Senior Member
    Join Date
    Dec 2009
    Posts
    247
    Rep Power
    3

    Default Using get_allocator () in C++

    I am learning C++ language and I want to know working of C++ functions. So, please tell me about get_allocator () function of C++ language. Also tell me how to use get_allocator () function in C++. Thanks in advance.

  2. #2
    TorresScott is offline Senior Member
    Join Date
    Dec 2009
    Posts
    239
    Rep Power
    3

    Default

    This function utilized to get allocator in C++ language. This function returns allocator of object that utilized to build vector. This function comes below vector class.

  3. #3
    EvansMitchell is offline Senior Member
    Join Date
    Dec 2009
    Posts
    227
    Rep Power
    3

    Default

    This function returns allocator of given specified vector. Member type allocator_type can be specified to parameter of second template utilized to instantiate that particular class vector and type of allocator. Following is syntax of get_allocator() function:

    Code:

    allocator_type get_allocator () const;

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48