ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Utilities

Detailed Description

Auxiliary functions and classes used throughout ACTS.

Classes

class  Acts::AnyBase< sb_size, copyable >
 Small opaque type-erased type with configurable small buffer optimization. More...
class  Acts::AnyBaseAll
 Base class for all instances of AnyBase regarfless of SBO size. More...

Typedefs

using Acts::Any = AnyBase<sizeof(void*), true>
 A type-safe container for single values of any type.
using Acts::AnyMoveOnly = AnyBase<sizeof(void*), false>
 Move-only variant that can store move-only types (e.g.

Typedef Documentation

◆ Any

using Acts::Any = AnyBase<sizeof(void*), true>

A type-safe container for single values of any type.

This is a custom implementation similar to std::any but optimized for small types that can fit into a pointer-sized buffer. Values larger than a pointer are stored on the heap.

◆ AnyMoveOnly

using Acts::AnyMoveOnly = AnyBase<sizeof(void*), false>

Move-only variant that can store move-only types (e.g.

std::unique_ptr)

Same as Any but copy constructor and copy assignment are deleted. Use when storing types that are not copyable.