---
name: "__gnu_pbds::sample_resize_trigger"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_pbds::sample_resize_trigger"
---

# \_\_gnu\_pbds::sample\_resize\_trigger(3)

A sample resize trigger policy.

## NAME

\_\_gnu\_pbds::sample\_resize\_trigger - A sample resize trigger policy.

## SYNOPSIS

\#include \<sample\_resize\_trigger.hpp\>

### Public Types

typedef std::size\_t **size\_type**\
 Size type.

### Public Member Functions

**sample\_resize\_trigger** ()\
 Default constructor.  **sample\_range\_hashing** (const **sample\_resize\_trigger** &)\
 Copy constructor.  void **swap** (**sample\_resize\_trigger** &)\
 Swaps content.

### Protected Member Functions

bool **is\_grow\_needed** (**size\_type** size, **size\_type** num\_entries) const\
 Queries whether a grow is needed.  bool **is\_resize\_needed** () const\
 Queries whether a resize is needed.  void **notify\_cleared** ()\
 Notifies the table was cleared.  void **notify\_erase\_search\_collision** ()\
 Notifies a search encountered a collision.  void **notify\_erase\_search\_end** ()\
 Notifies a search ended.  void **notify\_erase\_search\_start** ()\
 Notifies a search started.  void **notify\_erased** (**size\_type** num\_entries)\
 Notifies an element was erased.  void **notify\_externally\_resized** (**size\_type** new\_size)\
 Notifies the table was resized externally.  void **notify\_find\_search\_collision** ()\
 Notifies a search encountered a collision.  void **notify\_find\_search\_end** ()\
 Notifies a search ended.  void **notify\_find\_search\_start** ()\
 Notifies a search started.  void **notify\_insert\_search\_collision** ()\
 Notifies a search encountered a collision.  void **notify\_insert\_search\_end** ()\
 Notifies a search ended.  void **notify\_insert\_search\_start** ()\
 Notifies a search started.  void **notify\_inserted** (**size\_type** num\_entries)\
 Notifies an element was inserted. the total number of entries in the table is num\_entries.  void **notify\_resized** (**size\_type** new\_size)\
 Notifies the table was resized as a result of this object's signifying that a resize is needed.

## Detailed Description

A sample resize trigger policy.

## Member Typedef Documentation

### typedef std::size\_t \_\_gnu\_pbds::sample\_resize\_trigger::size\_type

Size type.

## Constructor & Destructor Documentation

### \_\_gnu\_pbds::sample\_resize\_trigger::sample\_resize\_trigger ()

Default constructor.

Referenced by **sample\_range\_hashing()**, and **swap()**.

## Member Function Documentation

### bool \_\_gnu\_pbds::sample\_resize\_trigger::is\_grow\_needed (size\_type size, size\_type num\_entries) const \[inline\], \[protected\]

Queries whether a grow is needed.

### bool \_\_gnu\_pbds::sample\_resize\_trigger::is\_resize\_needed () const \[inline\], \[protected\]

Queries whether a resize is needed.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_cleared () \[protected\]

Notifies the table was cleared.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_erase\_search\_collision () \[inline\], \[protected\]

Notifies a search encountered a collision.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_erase\_search\_end () \[inline\], \[protected\]

Notifies a search ended.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_erase\_search\_start () \[inline\], \[protected\]

Notifies a search started.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_erased (size\_type num\_entries) \[inline\], \[protected\]

Notifies an element was erased.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_externally\_resized (size\_type new\_size) \[protected\]

Notifies the table was resized externally.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_find\_search\_collision () \[inline\], \[protected\]

Notifies a search encountered a collision.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_find\_search\_end () \[inline\], \[protected\]

Notifies a search ended.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_find\_search\_start () \[inline\], \[protected\]

Notifies a search started.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_insert\_search\_collision () \[inline\], \[protected\]

Notifies a search encountered a collision.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_insert\_search\_end () \[inline\], \[protected\]

Notifies a search ended.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_insert\_search\_start () \[inline\], \[protected\]

Notifies a search started.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_inserted (size\_type num\_entries) \[inline\], \[protected\]

Notifies an element was inserted. the total number of entries in the table is num\_entries.

### void \_\_gnu\_pbds::sample\_resize\_trigger::notify\_resized (size\_type new\_size) \[protected\]

Notifies the table was resized as a result of this object's signifying that a resize is needed.

### \_\_gnu\_pbds::sample\_resize\_trigger::sample\_range\_hashing (const sample\_resize\_trigger & )

Copy constructor.

References **sample\_resize\_trigger()**.

### void \_\_gnu\_pbds::sample\_resize\_trigger::swap (sample\_resize\_trigger & ) \[inline\]

Swaps content.

References **sample\_resize\_trigger()**.

## Author

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