From f763a99a501650eff2c60288aa6f10ef916d769e Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Thu, 6 Oct 2016 10:41:18 +0900 Subject: Imported Upstream version 1.62.0 Change-Id: I9d4c1ddb7b7d8f0069217ecc582700f9fda6dd4c Signed-off-by: DongHun Kwak --- doc/html/boost/container/node_allocator.html | 114 +++++++++++++-------------- 1 file changed, 57 insertions(+), 57 deletions(-) (limited to 'doc/html/boost/container/node_allocator.html') diff --git a/doc/html/boost/container/node_allocator.html b/doc/html/boost/container/node_allocator.html index 391f8c0f44..93c4024857 100644 --- a/doc/html/boost/container/node_allocator.html +++ b/doc/html/boost/container/node_allocator.html @@ -4,7 +4,7 @@ Class template node_allocator - + @@ -53,139 +53,139 @@ }; // construct/copy/destruct - node_allocator() noexcept; - node_allocator(const node_allocator &) noexcept; + node_allocator() noexcept; + node_allocator(const node_allocator &) noexcept; template<typename T2> - node_allocator(const node_allocator< T2, NodesPerBlock > &) noexcept; - ~node_allocator(); + node_allocator(const node_allocator< T2, NodesPerBlock > &) noexcept; + ~node_allocator(); - // public member functions - size_type max_size() const; - pointer allocate(size_type, const void * = 0); - void deallocate(const pointer &, size_type) noexcept; - pointer allocation_command(allocation_type, size_type, size_type &, + // public member functions + size_type max_size() const; + pointer allocate(size_type, const void * = 0); + void deallocate(const pointer &, size_type) noexcept; + pointer allocation_command(allocation_type, size_type, size_type &, pointer &); - size_type size(pointer) const noexcept; - pointer allocate_one(); - void allocate_individual(std::size_t, multiallocation_chain &); - void deallocate_one(pointer) noexcept; - void deallocate_individual(multiallocation_chain &) noexcept; - void allocate_many(size_type, std::size_t, multiallocation_chain &); - void allocate_many(const size_type *, size_type, multiallocation_chain &); - void deallocate_many(multiallocation_chain &) noexcept; + size_type size(pointer) const noexcept; + pointer allocate_one(); + void allocate_individual(std::size_t, multiallocation_chain &); + void deallocate_one(pointer) noexcept; + void deallocate_individual(multiallocation_chain &) noexcept; + void allocate_many(size_type, std::size_t, multiallocation_chain &); + void allocate_many(const size_type *, size_type, multiallocation_chain &); + void deallocate_many(multiallocation_chain &) noexcept; - // public static functions - static void deallocate_free_blocks() noexcept; + // public static functions + static void deallocate_free_blocks() noexcept; - // friend functions - friend void swap(self_t &, self_t &) noexcept; - friend bool operator==(const node_allocator &, const node_allocator &) noexcept; - friend bool operator!=(const node_allocator &, const node_allocator &) noexcept; + // friend functions + friend void swap(self_t &, self_t &) noexcept; + friend bool operator==(const node_allocator &, const node_allocator &) noexcept; + friend bool operator!=(const node_allocator &, const node_allocator &) noexcept; - // private member functions - pointer priv_allocation_command(allocation_type, std::size_t, size_type &, + // private member functions + pointer priv_allocation_command(allocation_type, std::size_t, size_type &, pointer &); };
-

Description

+

Description

An STL node allocator that uses a modified DlMalloc as memory source.

This node allocator shares a segregated storage between all instances of node_allocator with equal sizeof(T).

NodesPerBlock is the number of nodes allocated at once when the allocator runs out of nodes

-

+

node_allocator public construct/copy/destruct

  1. -
    node_allocator() noexcept;
    Default constructor.
  2. +
    node_allocator() noexcept;
    Default constructor.
  3. -
    node_allocator(const node_allocator &) noexcept;
    Copy constructor from other node_allocator.
  4. +
    node_allocator(const node_allocator &) noexcept;
    Copy constructor from other node_allocator.
  5. template<typename T2> 
    -  node_allocator(const node_allocator< T2, NodesPerBlock > &) noexcept;
    Copy constructor from related node_allocator.
  6. + node_allocator(const node_allocator< T2, NodesPerBlock > &) noexcept;Copy constructor from related node_allocator.
  7. -
    ~node_allocator();
    Destructor.
  8. +
    ~node_allocator();
    Destructor.
-

-node_allocator public member functions

+

+node_allocator public member functions

  1. -
    size_type max_size() const;
    +
    size_type max_size() const;

    Returns the number of elements that could be allocated. Never throws

  2. -
    pointer allocate(size_type count, const void * = 0);
    +
    pointer allocate(size_type count, const void * = 0);

    Allocate memory for an array of count elements. Throws std::bad_alloc if there is no enough memory

  3. -
    void deallocate(const pointer & ptr, size_type count) noexcept;
    +
    void deallocate(const pointer & ptr, size_type count) noexcept;

    Deallocate allocated memory. Never throws

  4. -
  5. pointer allocation_command(allocation_type command, size_type limit_size, 
    +
  6. pointer allocation_command(allocation_type command, size_type limit_size, 
                                size_type & prefer_in_recvd_out_size, 
                                pointer & reuse);
  7. -
    size_type size(pointer p) const noexcept;
    +
    size_type size(pointer p) const noexcept;

    Returns maximum the number of objects the previously allocated memory pointed by p can hold.

  8. -
    pointer allocate_one();
    +
    pointer allocate_one();

    Allocates just one object. Memory allocated with this function must be deallocated only with deallocate_one(). Throws bad_alloc if there is no enough memory

  9. -
    void allocate_individual(std::size_t num_elements, 
    +
    void allocate_individual(std::size_t num_elements, 
                              multiallocation_chain & chain);

    Allocates many elements of size == 1. Elements must be individually deallocated with deallocate_one()

  10. -
    void deallocate_one(pointer p) noexcept;
    +
    void deallocate_one(pointer p) noexcept;

    Deallocates memory previously allocated with allocate_one(). You should never use deallocate_one to deallocate memory allocated with other functions different from allocate_one(). Never throws

  11. -
  12. void deallocate_individual(multiallocation_chain & chain) noexcept;
  13. +
  14. void deallocate_individual(multiallocation_chain & chain) noexcept;
  15. -
    void allocate_many(size_type elem_size, std::size_t n_elements, 
    +
    void allocate_many(size_type elem_size, std::size_t n_elements, 
                        multiallocation_chain & chain);

    Allocates many elements of size elem_size. Elements must be individually deallocated with deallocate()

  16. -
    void allocate_many(const size_type * elem_sizes, size_type n_elements, 
    +
    void allocate_many(const size_type * elem_sizes, size_type n_elements, 
                        multiallocation_chain & chain);

    Allocates n_elements elements, each one of size elem_sizes[i] Elements must be individually deallocated with deallocate()

  17. -
  18. void deallocate_many(multiallocation_chain & chain) noexcept;
  19. +
  20. void deallocate_many(multiallocation_chain & chain) noexcept;
-

-node_allocator public static functions

+

+node_allocator public static functions

  1. -
    static void deallocate_free_blocks() noexcept;
    Deallocates all free blocks of the pool.
+
static void deallocate_free_blocks() noexcept;
Deallocates all free blocks of the pool.
-

-node_allocator friend functions

+

+node_allocator friend functions

  1. -
    friend void swap(self_t &, self_t &) noexcept;
    +
    friend void swap(self_t &, self_t &) noexcept;

    Swaps allocators. Does not throw. If each allocator is placed in a different memory segment, the result is undefined.

  2. -
    friend bool operator==(const node_allocator &, const node_allocator &) noexcept;
    +
    friend bool operator==(const node_allocator &, const node_allocator &) noexcept;

    An allocator always compares to true, as memory allocated with one instance can be deallocated by another instance

  3. -
    friend bool operator!=(const node_allocator &, const node_allocator &) noexcept;
    +
    friend bool operator!=(const node_allocator &, const node_allocator &) noexcept;

    An allocator always compares to false, as memory allocated with one instance can be deallocated by another instance

-

-node_allocator private member functions

-
  1. pointer priv_allocation_command(allocation_type command, 
    +

    +node_allocator private member functions

    +
    1. pointer priv_allocation_command(allocation_type command, 
                                       std::size_t limit_size, 
                                       size_type & prefer_in_recvd_out_size, 
                                       pointer & reuse);
    -- cgit v1.2.3