30 using container_type = std::vector<std::shared_ptr<EKReaction>>;
34 using iterator =
typename container_type::iterator;
38 container_type m_ekreactions;
41 bool contains(std::shared_ptr<EKReaction>
const &ek_reaction)
const noexcept {
42 return std::find(
begin(),
end(), ek_reaction) !=
end();
44 void add(std::shared_ptr<EKReaction>
const &ek_reaction) {
46 m_ekreactions.emplace_back(ek_reaction);
48 void remove(std::shared_ptr<EKReaction>
const &ek_reaction) {
50 std::erase(m_ekreactions, ek_reaction);
57 [[nodiscard]]
bool empty()
const {
return m_ekreactions.empty(); }
void remove(std::shared_ptr< EKReaction > const &ek_reaction)
typename container_type::const_iterator const_iterator
bool contains(std::shared_ptr< EKReaction > const &ek_reaction) const noexcept
const_iterator begin() const
typename container_type::value_type value_type
void add(std::shared_ptr< EKReaction > const &ek_reaction)
typename container_type::iterator iterator
const_iterator end() const