Module std::util

Miscellaneous helpers for common patterns.

Structs

NonCopyable

A non-copyable dummy type.

Enums

Void

A type with no inhabitants

Functions

id

The identity function.

ignore

Ignores a value.

replace

Replace the value at a mutable location with a new one, returning the old value, without deinitialising or copying either one.

swap

Swap the values at two mutable locations of the same type, without deinitialising or copying either one.