MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ remove_perception()

template<typename T >
void MayaFlux::Nexus::Agent::remove_perception ( const std::shared_ptr< Perception< T > > &  perception)
inline

Stop a perception added with add_perception().

Definition at line 268 of file Agent.hpp.

269 {
270 std::erase_if(m_perceptions,
271 [&perception](const auto& entry) { return entry.first == perception; });
272 }
std::vector< std::pair< std::shared_ptr< void >, PerceptionFn > > m_perceptions
Definition Agent.hpp:398