SpECTRE
v2024.09.29
|
Inserter for inserting data that is received as the value_type
(with non-const key_type
) of a map data structure.
More...
#include <InboxInserters.hpp>
Static Public Member Functions | |
template<typename Inbox , typename TemporalId , typename ReceiveDataType > | |
static void | insert_into_inbox (const gsl::not_null< Inbox * > inbox, const TemporalId &temporal_id, ReceiveDataType &&data) |
Inserter for inserting data that is received as the value_type
(with non-const key_type
) of a map data structure.
An example would be a std::unordered_map<int, int>
, where the first int
is the "spatial" id of the parallel component array. The data type that is sent to the component would be a std::pair<int, int>
, or more generally a std::pair<key_type, mapped_type>
. The inbox tag would be: