ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::replace< kSORT > Struct Template Reference

A replace populator that overrides whatever current content is in the bin with a new entry. More...

#include <detray/utils/grid/populators.hpp>

Public Member Functions

template<typename bin_t, typename content_t>
void operator() (bin_t &&bin, content_t &&entry) const
 Replace the bin content with a new entry - forwarding.

Detailed Description

template<bool kSORT = false>
struct detray::replace< kSORT >

A replace populator that overrides whatever current content is in the bin with a new entry.

Template Parameters
kSORTsort the entries in the bin
Note
entry type and bin content type may not be identical for all bin types

Member Function Documentation

◆ operator()()

template<bool kSORT = false>
template<typename bin_t, typename content_t>
void detray::replace< kSORT >::operator() ( bin_t && bin,
content_t && entry ) const

Replace the bin content with a new entry - forwarding.

Parameters
binthe bin for which to replace the content
entrynew content to be added