| Home | Libraries | People | FAQ | More

##### rtree(Range const &, allocator_type const &, PackAlloc const &)

The constructor.

###### Description

The tree is created using packing algorithm and a temporary packing allocator.

###### Synopsis

    template<typename Range, typename PackAlloc>
    rtree(Range const & rng,
          allocator_type const & allocator,
          PackAlloc const & temp_allocator)

###### Modifier(s)

    explicit

###### Parameter(s)

Type | Name | Description
--- | --- | ---
`Range const &` | `rng` | The range of Values.
`allocator_type` `const &` | `allocator` | The allocator object for persistent data in the tree.
`PackAlloc const &` | `temp_allocator` | The temporary allocator object used when packing.

###### Throws

- If allocator copy constructor throws.
- If Value copy constructor or copy assignment throws.
- If allocation throws or returns invalid value.