---
name: "__gnu_pbds::detail::resize_policy"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_pbds::detail::resize_policy/3cxx"
---

# \_\_gnu\_pbds::detail::resize\_policy(3cxx)

Resize policy for binary heap.

## NAME

\_\_gnu\_pbds::detail::resize\_policy\< \_Tp \> - Resize policy for binary heap.

## SYNOPSIS

`#include <resize_policy.hpp>`

### Public Types

typedef \_Tp **size\_type**\

### Public Member Functions

**resize\_policy** (const **resize\_policy** &other)\
 size\_type **get\_new\_size\_for\_arbitrary** (size\_type) const\
 size\_type **get\_new\_size\_for\_grow** () const\
 size\_type **get\_new\_size\_for\_shrink** () const\
 bool **grow\_needed** (size\_type) const\
 void **notify\_arbitrary** (size\_type)\
 void **notify\_grow\_resize** ()\
 void **notify\_shrink\_resize** ()\
 bool **resize\_needed\_for\_grow** (size\_type) const\
 bool **resize\_needed\_for\_shrink** (size\_type) const\
 bool **shrink\_needed** (size\_type) const\
 void **swap** (**resize\_policy**\< \_Tp \> &)\

### Static Public Attributes

static const \_Tp **min\_size**\

## Detailed Description

### template\<typename \_Tp\>

class \_\_gnu\_pbds::detail::resize\_policy\< \_Tp \>"Resize policy for binary heap.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
