---
name: "__gnu_pbds::list_update"
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::list_update"
---

# \_\_gnu\_pbds::list\_update(3)

## NAME

\_\_gnu\_pbds::list\_update\< Key, Mapped, Eq\_Fn, Update\_Policy, \_Alloc \>

## SYNOPSIS

\#include \<assoc\_container.hpp\>

### Public Types

typedef **list\_update\_tag** **container\_category**\
 typedef Eq\_Fn **eq\_fn**\
 typedef Update\_Policy **update\_policy**\

### Public Member Functions

**list\_update** (const list\_update &other)\
 template\<typename It\> **list\_update** (It first, It last)\
 Constructor taking \_\_iterators to a range of value\_types. The value\_types between first\_it and last\_it will be inserted into the container object.  list\_update & **operator=** (const list\_update &other)\
 void **swap** (list\_update &other)\

## Detailed Description

### template\<typename Key, typename Mapped, class Eq\_Fn = typename detail::default\_eq\_fn\<Key\>::type, class Update\_Policy = detail::default\_update\_policy::type, class \_Alloc = std::allocator\<char\>\>

class \_\_gnu\_pbds::list\_update\< Key, Mapped, Eq\_Fn, Update\_Policy, \_Alloc \>"A list-update based associative container.

**Template Parameters**

*Key* Key type. \
 *Mapped* Map type. \
 *Eq\_Fn* Equal functor. \
 *Update\_Policy* Update policy, determines when an element will be moved to the front of the list. \
 *\_Alloc* Allocator type.

Base is detail::lu\_map.

## Constructor & Destructor Documentation

### template\<typename Key, typename Mapped, class Eq\_Fn = typename detail::default\_eq\_fn\<Key\>::type, class Update\_Policy = detail::default\_update\_policy::type, class \_Alloc = std::allocator\<char\>\> template\<typename It\> \_\_gnu\_pbds::list\_update\< Key, Mapped, Eq\_Fn, Update\_Policy, \_Alloc \>::list\_update (It first, It last) \[inline\]

Constructor taking \_\_iterators to a range of value\_types. The value\_types between first\_it and last\_it will be inserted into the container object.

## Author

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