SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
Parallel::InboxInserters::Pushback< InboxTag > Struct Template Reference

Inserter for inserting data that is received as the value_type of a data structure that has an push_back(value_type&&) member function. More...

#include <InboxInserters.hpp>

Static Public Member Functions

template<typename Inbox, typename TemporalId, typename ReceiveDataType>
static bool insert_into_inbox (const gsl::not_null< Inbox * > inbox, const TemporalId &temporal_id, ReceiveDataType &&data)

Detailed Description

template<typename InboxTag>
struct Parallel::InboxInserters::Pushback< InboxTag >

Inserter for inserting data that is received as the value_type of a data structure that has an push_back(value_type&&) member function.

Can be used for receiving data into data structures like std::vector.

struct PushbackTag : public Parallel::InboxInserters::Pushback<PushbackTag> {
using temporal_id = size_t;
using type = std::unordered_map<temporal_id, std::vector<int>>;
};

The documentation for this struct was generated from the following file:
  • src/Parallel/InboxInserters.hpp